mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 14:52:17 +00:00
mempool: add GetState()
This commit is contained in:
parent
54e222866a
commit
f2d5aba2a9
@ -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.
|
// Apply tx to the state and remember it.
|
||||||
func (mem *Mempool) AddTx(tx blk.Tx) (err error) {
|
func (mem *Mempool) AddTx(tx blk.Tx) (err error) {
|
||||||
mem.mtx.Lock()
|
mem.mtx.Lock()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user