Skip to content

Commit

Permalink
Remove debug msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
AnkushinDaniil committed Nov 7, 2024
1 parent 4ea9127 commit a73ede5
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions blockchain/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,29 +371,21 @@ func (b *Blockchain) Store(block *core.Block, blockCommitments *core.BlockCommit
return err
}

fmt.Println("block.ProtocolVersion", block.ProtocolVersion)

blockVer, err := core.ParseBlockVersion(block.ProtocolVersion)
if err != nil {
return err
}

fmt.Println("blockVer", blockVer)

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

fmt.Println("blockCommitments", blockCommitments)

if err := StoreBlockCommitments(txn, block.Number, blockCommitments); err != nil {
return err
}
Expand Down

0 comments on commit a73ede5

Please sign in to comment.