Skip to content

Commit

Permalink
Override nil sequencer address
Browse files Browse the repository at this point in the history
  • Loading branch information
kirugan authored and AnkushinDaniil committed Nov 7, 2024
1 parent 72e1cca commit 96f13ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions blockchain/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,10 @@ func (b *Blockchain) Store(block *core.Block, blockCommitments *core.BlockCommit
}

if blockVer.LessThan(core.Ver0_13_2) {
// temporary hack
if block.SequencerAddress == nil {
block.SequencerAddress = &felt.Zero
}
if err := ComputeAndStoreP2PHash(txn, block, stateUpdate.StateDiff); err != nil {
return err
}
Expand Down

0 comments on commit 96f13ef

Please sign in to comment.