Use BlockCache for RPC/mempool and added TxId()

TxId() uses signbytes
This commit is contained in:
Jae Kwon
2015-03-29 18:43:27 -07:00
parent 19a50c1229
commit 5cb57d3eaa
6 changed files with 18 additions and 7 deletions

View File

@ -34,6 +34,10 @@ func (mem *Mempool) GetState() *sm.State {
return mem.state
}
func (mem *Mempool) GetCache() *sm.BlockCache {
return mem.cache
}
// Apply tx to the state and remember it.
func (mem *Mempool) AddTx(tx types.Tx) (err error) {
mem.mtx.Lock()