mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 12:51:22 +00:00
list_unconfirmed_txs RPC call
This commit is contained in:
@ -30,6 +30,7 @@ func BroadcastTx(tx types.Tx) (*ctypes.ResponseBroadcastTx, error) {
|
||||
return &ctypes.ResponseBroadcastTx{ctypes.Receipt{txHash, createsContract, contractAddr}}, nil
|
||||
}
|
||||
|
||||
/*
|
||||
curl -H 'content-type: text/plain;' http://127.0.0.1:8888/submit_tx?tx=...
|
||||
*/
|
||||
func ListUnconfirmedTxs() (*ctypes.ResponseListUnconfirmedTxs, error) {
|
||||
txs := mempoolReactor.Mempool.GetProposalTxs()
|
||||
return &ctypes.ResponseListUnconfirmedTxs{txs}, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user