Skip to content

Commit

Permalink
fix the mint day gap skip fork batch
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricfung committed Feb 12, 2024
1 parent 52287bf commit 941f90c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kernel/hack.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ package kernel
const (
mainnetConsensusOperationElectionForkAt = uint64(1701388800000000000)
mainnetConsensusNodeRemovalTimeForkAt = uint64(1706400000000000000)
mainnetMintDayGapSkipForkBatch = uint64(1810)
mainnetMintDayGapSkipForkBatch = uint64(1800)
mainnetNodeRemovalHackSnapshotHash = "b5a9ab66e3b5d24328f8f87bc38e90f0c426dc38413200bb8ecf7f5b8607a5f9"
)
4 changes: 2 additions & 2 deletions p2p/handle.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ func (me *Peer) loopHandlePeerMessage(peerId crypto.Hash, receive chan *PeerMess
}

func (me *Peer) relayOrHandlePeerMessage(relayerId crypto.Hash, msg *PeerMessage) error {
logger.Printf("me.relayOrHandlePeerMessage(%s, %s) => %s %v", me.Address, me.IdForNetwork, relayerId, msg.Data)
logger.Verbosef("me.relayOrHandlePeerMessage(%s, %s) => %s %v", me.Address, me.IdForNetwork, relayerId, msg.Data)
if len(msg.Data) < 64 {
return nil
}
Expand All @@ -445,7 +445,7 @@ func (me *Peer) relayOrHandlePeerMessage(relayerId crypto.Hash, msg *PeerMessage
copy(to[:], msg.Data[32:64])
if to == me.IdForNetwork {
rm, err := parseNetworkMessage(msg.version, msg.Data[64:])
logger.Printf("me.relayOrHandlePeerMessage.ME(%s, %s) => %s %v %v", me.Address, me.IdForNetwork, from, rm, err)
logger.Verbosef("me.relayOrHandlePeerMessage.ME(%s, %s) => %s %v %v", me.Address, me.IdForNetwork, from, rm, err)
if err != nil {
return err
}
Expand Down

0 comments on commit 941f90c

Please sign in to comment.