mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 04:41:22 +00:00
uint64 height (Refs #911)
This commit is contained in:
committed by
Ethan Buchman
parent
b2489b4318
commit
b3492356e6
@ -25,10 +25,10 @@ type Mempool interface {
|
||||
Size() int
|
||||
CheckTx(Tx, func(*abci.Response)) error
|
||||
Reap(int) Txs
|
||||
Update(height int, txs Txs) error
|
||||
Update(height uint64, txs Txs) error
|
||||
Flush()
|
||||
|
||||
TxsAvailable() <-chan int
|
||||
TxsAvailable() <-chan uint64
|
||||
EnableTxsAvailable()
|
||||
}
|
||||
|
||||
@ -42,9 +42,9 @@ func (m MockMempool) Unlock() {}
|
||||
func (m MockMempool) Size() int { return 0 }
|
||||
func (m MockMempool) CheckTx(tx Tx, cb func(*abci.Response)) error { return nil }
|
||||
func (m MockMempool) Reap(n int) Txs { return Txs{} }
|
||||
func (m MockMempool) Update(height int, txs Txs) error { return nil }
|
||||
func (m MockMempool) Update(height uint64, txs Txs) error { return nil }
|
||||
func (m MockMempool) Flush() {}
|
||||
func (m MockMempool) TxsAvailable() <-chan int { return make(chan int) }
|
||||
func (m MockMempool) TxsAvailable() <-chan uint64 { return make(chan uint64) }
|
||||
func (m MockMempool) EnableTxsAvailable() {}
|
||||
|
||||
//------------------------------------------------------
|
||||
@ -53,14 +53,14 @@ func (m MockMempool) EnableTxsAvailable() {}
|
||||
// BlockStoreRPC is the block store interface used by the RPC.
|
||||
// UNSTABLE
|
||||
type BlockStoreRPC interface {
|
||||
Height() int
|
||||
Height() uint64
|
||||
|
||||
LoadBlockMeta(height int) *BlockMeta
|
||||
LoadBlock(height int) *Block
|
||||
LoadBlockPart(height int, index int) *Part
|
||||
LoadBlockMeta(height uint64) *BlockMeta
|
||||
LoadBlock(height uint64) *Block
|
||||
LoadBlockPart(height uint64, index int) *Part
|
||||
|
||||
LoadBlockCommit(height int) *Commit
|
||||
LoadSeenCommit(height int) *Commit
|
||||
LoadBlockCommit(height uint64) *Commit
|
||||
LoadSeenCommit(height uint64) *Commit
|
||||
}
|
||||
|
||||
// BlockStore defines the BlockStore interface.
|
||||
|
Reference in New Issue
Block a user