Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
Frozen committed Sep 12, 2023
1 parent cb9b156 commit edc3ca1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions core/blockchain_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -1750,9 +1750,6 @@ func (bc *BlockChainImpl) insertChain(chain types.Blocks, verifyHeaders bool) (i
if len(chain) == 0 {
return 0, nil, nil, nil
}
e := chain[0]
fmt.Println("insertChain", bc.shardID, e.Epoch().Uint64(), e.NumberU64())

// Do a sanity check that the provided chain is actually ordered and linked
for i := 1; i < len(chain); i++ {
if chain[i].NumberU64() != chain[i-1].NumberU64()+1 || chain[i].ParentHash() != chain[i-1].Hash() {
Expand Down
4 changes: 2 additions & 2 deletions internal/configs/sharding/localnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ const (
localnetV1Epoch = 1

localnetEpochBlock1 = 5
localnetBlocksPerEpoch = 8
localnetBlocksPerEpochV2 = 8
localnetBlocksPerEpoch = 64
localnetBlocksPerEpochV2 = 64

localnetVdfDifficulty = 5000 // This takes about 10s to finish the vdf
)
Expand Down
2 changes: 1 addition & 1 deletion node/worker/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func (w *Worker) CommitTransactions(
// but the balance will immediately be returned to shard 1
cx, err := core.MayBalanceMigration(
w.current.gasPool,
w.chain.CurrentHeader(),
w.GetCurrentHeader(),
w.current.state,
w.chain,
w.chain.Config(),
Expand Down

0 comments on commit edc3ca1

Please sign in to comment.