This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
tendermint
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
221
Wiki
Activity
Browse Source
mempool: add GetState()
pull/37/head
Ethan Buchman
10 years ago
parent
54e222866a
commit
f2d5aba2a9
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
(
)
Write
Preview
Loading…
Cancel
Save