mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-10 20:01:20 +00:00
mempool: add GetState()
This commit is contained in:
@ -28,6 +28,10 @@ func NewMempool(state *sm.State) *Mempool {
|
||||
}
|
||||
}
|
||||
|
||||
func (mem *Mempool) GetState() *sm.State {
|
||||
return mem.state
|
||||
}
|
||||
|
||||
// Apply tx to the state and remember it.
|
||||
func (mem *Mempool) AddTx(tx blk.Tx) (err error) {
|
||||
mem.mtx.Lock()
|
||||
|
Reference in New Issue
Block a user