mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-21 10:27:26 +08:00
Merge branch 'develop' into v2.0.3-p4
This commit is contained in:
commit
4a8e02e0b2
@ -211,7 +211,7 @@ func (e *DataClockConsensusEngine) handleClockFrame(
|
||||
}
|
||||
|
||||
trie := e.GetFrameProverTries()[0]
|
||||
if !trie.Contains(addr.Bytes()) {
|
||||
if !trie.Contains(addr.FillBytes(make([]byte, 32))) {
|
||||
e.logger.Debug(
|
||||
"prover not in trie at frame, address may be in fork",
|
||||
zap.Binary("address", address),
|
||||
|
||||
@ -56,7 +56,7 @@ func (e *DataClockConsensusEngine) IsInProverTrie(key []byte) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
provingKeyAddress := h.Bytes()
|
||||
provingKeyAddress := h.FillBytes(make([]byte, 32))
|
||||
for _, tries := range e.GetFrameProverTries() {
|
||||
if tries.Contains(provingKeyAddress) {
|
||||
return true
|
||||
|
||||
Loading…
Reference in New Issue
Block a user