Browse Source

mempool: add GetState()

pull/37/head
Ethan Buchman 10 years ago
parent
commit
f2d5aba2a9
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      mempool/mempool.go

+ 4
- 0
mempool/mempool.go 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()


Loading…
Cancel
Save