Skip to content

Commit

Permalink
For now disable checkpoints and panic on consensus errors so that the…
Browse files Browse the repository at this point in the history
…y can be debugged
  • Loading branch information
marcopeereboom committed Nov 7, 2024
1 parent 99a1144 commit d8dacf1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions chaincfg/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -702,12 +702,12 @@ var TestNet4Params = Params{

// Checkpoints ordered from oldest to newest.
Checkpoints: []Checkpoint{
{500, newHashFromStr("00000000c674047be3a7b25fefe0b6416f6f4e88ff9b01ddc05471b8e2ea603a")},
{1000, newHashFromStr("00000000b747d47c3b38161693ad05e26924b3775a8be669751f969da836311e")},
{10000, newHashFromStr("000000000037079ff4c37eed57d00eb9ddfde8737b559ffa4101b11e76c97466")},
{25000, newHashFromStr("00000000000000c207c423ebb2d935e7b867b51710aaf72967666e83696f01e2")},
{35000, newHashFromStr("0000000047f9360bd7e79d3959bd32366e24b4182caf138a8b10d42add3b7fd7")},
{45000, newHashFromStr("0000000019ae521883b2597ed74cd21e2efa43fbf487815300cad96206d76f0e")},
//{500, newHashFromStr("00000000c674047be3a7b25fefe0b6416f6f4e88ff9b01ddc05471b8e2ea603a")},
//{1000, newHashFromStr("00000000b747d47c3b38161693ad05e26924b3775a8be669751f969da836311e")},
//{10000, newHashFromStr("000000000037079ff4c37eed57d00eb9ddfde8737b559ffa4101b11e76c97466")},
//{25000, newHashFromStr("00000000000000c207c423ebb2d935e7b867b51710aaf72967666e83696f01e2")},
//{35000, newHashFromStr("0000000047f9360bd7e79d3959bd32366e24b4182caf138a8b10d42add3b7fd7")},
//{45000, newHashFromStr("0000000019ae521883b2597ed74cd21e2efa43fbf487815300cad96206d76f0e")},
},

// Consensus rule change deployments.
Expand Down
1 change: 1 addition & 0 deletions netsync/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,7 @@ func (sm *SyncManager) handleBlockMsg(bmsg *blockMsg) {
if _, ok := err.(blockchain.RuleError); ok {
log.Infof("Rejected block %v from %s: %v", blockHash,
peer, err)
panic(err)
} else {
log.Errorf("Failed to process block %v: %v",
blockHash, err)
Expand Down

0 comments on commit d8dacf1

Please sign in to comment.