update some comments
This commit is contained in:
parent
7bf34d1fae
commit
05136ff09d
|
@ -1235,7 +1235,7 @@ func (cs *ConsensusState) finalizeCommit(height int) {
|
||||||
PanicQ(Fmt("Commit failed for application: %v", err))
|
PanicQ(Fmt("Commit failed for application: %v", err))
|
||||||
}
|
}
|
||||||
|
|
||||||
// txs committed and removed from mempool, fire events
|
// txs committed, bad ones removed from mepool; fire events
|
||||||
eventCache.Flush()
|
eventCache.Flush()
|
||||||
|
|
||||||
// Save to blockStore.
|
// Save to blockStore.
|
||||||
|
|
|
@ -8,7 +8,8 @@ type Tx []byte
|
||||||
|
|
||||||
// NOTE: this is the hash of the go-wire encoded Tx.
|
// NOTE: this is the hash of the go-wire encoded Tx.
|
||||||
// Tx has no types at this level, so just length-prefixed.
|
// Tx has no types at this level, so just length-prefixed.
|
||||||
// Maybe it should just be the hash of the bytes tho?
|
// Alternatively, it may make sense to add types here and let
|
||||||
|
// []byte be type 0x1 so we can have versioned txs if need be in the future.
|
||||||
func (tx Tx) Hash() []byte {
|
func (tx Tx) Hash() []byte {
|
||||||
return merkle.SimpleHashFromBinary(tx)
|
return merkle.SimpleHashFromBinary(tx)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue