Merge branch 'develop' into v2.0.3-p4

This commit is contained in:
Cassandra Heart 2024-11-13 14:51:54 -06:00
commit 4a8e02e0b2
No known key found for this signature in database
GPG Key ID: 6352152859385958
2 changed files with 2 additions and 2 deletions

View File

@ -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),

View File

@ -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