Skip to content

v3.1.1

Compare
Choose a tag to compare
@github-actions github-actions released this 09 Dec 01:21
· 974 commits to master since this release
4605cf4

Recommended Upgrade

This is a recommended update that fixes a crash in 3.0.x that gets the chain to be stuck on valid TXs.

Important Info:

  • 3.0.x nodes continue to be supported in the network.
  • There is no requirement to upgrade to be a part of the network either to stake or validate.
  • The key purpose of v3.1.1 was to align the network quickly and prevent network splits in the interim and synchronise the network.
  • The bug was caused due to a missing revert in the implementation for DeFiCh/dfips#228. This feature has now been turned off is not expected to be enabled until the next planned network upgrade.

Upgrade Notes

  • For nodes >=3.1.0, it's a drop-in upgrade.
  • For nodes >=3.0.x, one of the following is required:
    • Sync from any of snapshots from the DeFiChain team (below)
    • Any of your own snapshots or data backups before block 2480466 (b41a1d51d80381d3b14be24bc8b2a5524e1c698f5d7cffe5ec4f7b6807ce935a).
    • Fresh sync.
  • For nodes that are being restored from recent snapshot, as with all updates before: -rescan for the wallet txs and additionally -spv_resync for users who hold BTC. If either isn't used, they may not be shown in the wallet until rescanned/resynced.
  • For other nodes, one of the following is required: a fresh sync, the most recent snapshot.

Network Snapshot

Network state of mainnet of the current longest chain from https://defiscan.live:

2480535: 588c270f7c3bcadf355982f395da39caddc8b0018e5c3bd3e2cdfc76ddf9cb24
2480575: c9166f806ff39b1dba64fb08ccadc16093315455cd7f7109a170030772706313
2480618: 25017f40f3035e80e9d0748cedac78112b9338dbae01d6a862058a17343924ce

Changes

  • Version v3.1.1 (#1642)
  • Add undo in ReversGeneralCoinbaseTx() (#1641)

Misc

Tips:

  • To check if you're on the right chain:
defi-cli getblockhash 2480535
  • To get on the right chain if you aren't:
$ defi-cli invalidateblock $(defi-cli getblockhash 2480535)
$ defi-cli clearbanned
$ defi-cli reconsiderblock 588c270f7c3bcadf355982f395da39caddc8b0018e5c3bd3e2cdfc76ddf9cb24