v2.0.0 - Fort Canning
Note: This version has been deprecated. A higher version has been released. Please use one of the higher versions to upgrade. The following information is purely historical.
Mandatory Update
What’s Changed
This is a mandatory update for the upcoming Fort Canning chain upgrade. It contains key features and fixes.
Fort Canning upgrade is set for block 1367000 (approx. ETA Monday, 15 Nov 2021) on mainnet.
Update of mainnet node before the chain upgrade block is REQUIRED.
Key Focus
- Native protocol support for decentralised loans. Includes all the foundational blocks for loans, auctions, bids and to bring stock tokens on to the ecosystem. This introduces a new set of protocols and RPCs to interact with the chain. For more information, please read the wiki here.
- Composite swap. Automatically swaps across up-to 3 pool pairs. Example: Directly swap between dBTC to dETH in one atomic step (Tx) through the underlying DFI-BTC and DFI-ETH pools. (#676)
- Improved on-chain mechanics for oracle pricing and fault tolerance with dedicated support for fixed time interval pricing.
updatemasternode
RPC that currently enables updating a masternode's operator address. (#687)setforcedrewardaddress
RPC that enables providing a dedicated address for masternode rewards. (#642)
Other noteworthy improvements:
- #704:
getmasternodeblocks
RPC now correctly returns blocks minted by all subnodes. - #686:
spv_refundhtlcall
RPC - Gets all HTLC contracts stored in wallet and creates refunds transactions for all that have expired. - #722: Anchoring cost has now been reduced to BTC dust (minimum possible).
- #752: Tx fees, which were being burnt after Eunos upgrade will now be included in block rewards again from Fort Canning.
Breaking RPC Changes (from 1.8.4)
- #815:
getgov
now returns an array instead of an object to account for multiple values with activation heights. - #815:
listpoolpairs
andgetpoolpair
RPCs now include additional field:rewardLoanPct
. - #711:
listaccounthistory
RPC now only includes a record if the transaction is trusted (confirmation > 0).
Full Changelog: v1.8.4...v2.0.0
How to run?
Download and untar the relevant version to your operating system, run bin/defid
or bin/defid.exe
to start a DeFi Blockchain daemon. The client (CLI) can be found at bin/defi-cli
or bin/defi-cli.exe
.
DeFi App (GUI) users
If you are running the desktop DeFi App, you do not have to manually update the underlying node as the app will handle it. Check https://github.com/DeFiCh/app/releases for the latest releases.
Testnet Info
The following are informational updates that apply only for development on testnet:
- Testnet has been rolled back to the testnet specific Fort Canning block height (
686200
) along with the release. - Blockhash of testnet 686200:
527ae58ed2a644e907d03a176779b5945a2682c1ef90d7563037cdf65e6a2364
Testnet rollback tips:
$ defi-cli -testnet invalidateblock $(defi-cli getblockhash 686200)
$ defi-cli -testnet reconsiderblock 527ae58ed2a644e907d03a176779b5945a2682c1ef90d7563037cdf65e6a2364
$ defi-cli -testnet clearbanned
Issues
Please report any issues to [email protected], or reach out to is via Telegram or Reddit.