Skip to content

v3.2.4

Compare
Choose a tag to compare
@github-actions github-actions released this 08 Feb 11:15
· 893 commits to master since this release
be4bd1f

Recommended Upgrade

  • Refactor of history database writers and inclusion of vault collateral changes in vault history
  • Remove left over amounts belonging to a closed vault in loan balances on vault closure
  • Correction to stats in listgovproposalvotes and listgovproposal
  • Support voting by owner or operator address in votegov
  • Fix for staker crash during invalidateblock call
  • Fix for getcustomtx crash when calling on a creategovvoc transaction still in mempool

Upgrade Notes

  • For >= 3.2.0 and <= 3.2.3, reindex is recommended, but is optional and a drop in-upgrade.
    • reindex fixes edge cases where some entries were missing in the outputs of listaccounthistory (fixed in: #1700) and account history related RPC. This does not affect consensus, UTXOs or account balances.
  • 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).
  • For all other updates, one of the following is required: a fresh sync, the most recent snapshot.
  • 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.
  • Users that rely on account, vault or burn history, may want to run their node with -reindex due to a bug fixed in this release that would delete the history of the last six blocks on startup.

RPC Changes

getgovproposal

  • Fixed
    • Argument parsing error.
  • New output fields added
    • votesNo - number of no votes
    • votesNeutral - number of neutral votes
    • votesInvalid - number of invalid votes (votes by ineligible masternodes)
    • feeRedistributionPerVote - DFI redistributed per voter
    • feeRedistributionTotal - total DFI redistributed to voters
    • approvalThreshold - threshold for number of yes votes for proposal to pass

listgovproposalvotes

  • Fixed
    • cycle is set to 1 instead of the current cycle when argument is not set.
    • Argument parsing error.
  • New output field added
    • valid: Validity of vote.
    • Note: This is not finalised until the voting period is completed, results may change over time if active masternodes resign before the completion height.
  • New arguments
    • aggregate: Returns aggregate voting information about one or more proposals.
      • If no proposal ID is sent, voting information for all of the current proposals are returned.
    • valid (default: true): filter results to include only valid or invalid votes.

votegov

  • masternodeId argument now supports owner and operator address.
    • The node will search for masternodes with the provided owner/operator address to vote with.
    • If a masternode ID is provided, behaviour is unchanged.

listvaulthistory

  • PaybackWithCollateral transactions are now listed.

getcustomtx

  • Fixed crash when decoding unconfirmed CreateVoc transactions.

What's Changed

  • Move CHistoryWriter into CCustomCSView by @Bushstar in #1700
  • Track Add/SubVaultCollateral in vault history by @Bushstar in #1715
  • Add more voting info in getgovproposal rpc by @Mixa84 in #1729
  • Change first parameter of listgovproposals and listgovproposalvotes to be string and parsed as JSON in rpc by @Mixa84 in #1732
  • rpc: votegov: Add support for owner and operator address by @DocteurPing in #1717
  • Addapt fee redistribution test to current situation by @Mixa84 in #1728
  • Remove positive amount on close vault by @Bushstar in #1712
  • Display vote validity in listgovproposals and add validity filter by @shohamc1 in #1725
  • Display aggregate vote stats in listgovproposalvotes by @shohamc1 in #1714
  • Add checkpoints to testnet/devnet by @Bushstar in #1738
  • Fix getcustomtx crash on mempool transaction by @Bushstar in #1742
  • Display vote validity in listgovproposals and add validity filter by @shohamc1 in #1740
  • Fix staker crash on invalidateblock by @Bushstar in #1741
  • v3.2.4 by @Bushstar in #1745

Full Changelog: v3.2.3...v3.2.4