File tree Expand file tree Collapse file tree 2 files changed +0
-108
lines changed
Expand file tree Collapse file tree 2 files changed +0
-108
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import (
1313 "github.com/pkg/errors"
1414
1515 "github.com/vechain/thor/v2/block"
16- "github.com/vechain/thor/v2/builtin"
1716 "github.com/vechain/thor/v2/consensus"
1817 "github.com/vechain/thor/v2/log"
1918 "github.com/vechain/thor/v2/logdb"
@@ -220,27 +219,6 @@ func (n *Node) commitBlock(ctx *blockExecContext) error {
220219
221220func (n * Node ) postBlockProcessing (newBlock * block.Block , conflicts uint32 ) {
222221 if err := func () error {
223- // print welcome info
224- if n .initialSynced {
225- blockNum := newBlock .Header ().Number ()
226- blockID := newBlock .Header ().ID ()
227- if needPrintWelcomeInfo () &&
228- blockNum >= n .forkConfig .HAYABUSA + thor .HayabusaTP () &&
229- // if transition period are set to 0, transition will attempt to happen on every block
230- (thor .HayabusaTP () == 0 || (blockNum - n .forkConfig .HAYABUSA )% thor .HayabusaTP () == 0 ) {
231- summary , err := n .repo .GetBlockSummary (blockID )
232- if err != nil {
233- return err
234- }
235- active , err := builtin .Staker .Native (n .stater .NewState (summary .Root ())).IsPoSActive ()
236- if err != nil {
237- return nil
238- }
239- if active {
240- printWelcomeInfo ()
241- }
242- }
243- }
244222 // scan for double signing, when exiting block at the same height are more than one
245223 if conflicts > 0 {
246224 newSigner , err := newBlock .Header ().Signer ()
You can’t perform that action at this time.
0 commit comments