mempool: add GetState()

This commit is contained in:
Ethan Buchman 2015-03-21 13:31:17 -07:00
parent 54e222866a
commit f2d5aba2a9

View File

@ -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()