Releases: DeFiCh/ain
v2.8.0 - Fort Canning Crunch
Mandatory Upgrade
This is a mandatory update for the upcoming Fort Canning Crunch chain upgrade. It contains a key new features that upgrades the protocol.
Fort Canning Crunch upgrade is set for block 1936000 (approx. ETA June 2, 2022) on mainnet.
Update of mainnet node to v2.8.0
before the chain upgrade block is REQUIRED.
Upgrade Notes
- For nodes that are running
>= v2.6.1 and <= v2.6.2
, this is a drop in upgrade. No reindex or fresh sync needed. - 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 backup from 2.6.x or latest snapshot.
- Note: For nodes on 2.7.0, please see the release notes of 2.7.1 for details on the statistics being reset. If you have updated as a drop-in replacement and depend on the statistics, please ensure to resync the chain from the given blocks.
What’s Changed
Key Focus
- Full support for token splits. The major highlight of this upgrade is to introduce token splits, auto rebalancing of the pool, vaults, auctions and user accounts. This is fully automatic and no user action is needed.
- On token split-block:
- Tokens in wallet: Will auto split
- Tokens in vaults: Will auto split
- Tokens in auctions and bids: Will auto split
- Tokens in future swap: Will be refunded back to the wallets and auto split. DUSD will just be refunded
- Tokens in pool pairs: Will auto migrate to new pool and be issued newer tokens.
- Note: These number of LP tokens issued will be based on the newer pool ratio, but will retain the same values.
- On token split-block:
Notables
- Internal token system has been partially moved to attributes, as the first part of a multi-release journey.
- The token split block will be an computation heavy block and could take anywhere between a few seconds to minutes based on the hardware of the system. Currently, it's yet to be optimised for speed, but scales out linearly based on the number of cores. Further optimisations are expected over time to improve this.
API Changes
listgovs
: Now takes one of the additional parameters:all/live/attrs/govs/<attribute-prefix>
to filter easily.- [Deprecated]
setloantoken
- Usage will be superseded by attributes system. - [Deprecated]
setcollateraltoken
- Usage will be superseded by attributes system. listcollateraltokens
:- [Deprecated field]
activateAfterBlock
- Usage has been superseded by attributes system.
- [Deprecated field]
🚀 Features
- Refactor mocknet and add more params @prasannavl (#1292)
- Add legacy filtering mode @prasannavl (#1271)
- Add mocknet helpers @prasannavl (#1273)
- Restore updateloantoken @Bushstar (#1272)
- Update token related calls for Fort Canning Crunch @Bushstar (#1265)
- Add filtering mechanism for listgovs @prasannavl (#1262)
- Add interrupt-block, stop-block, refactor stats, explicit validity checks @prasannavl (#1261)
- Token splits, token lock and move loan and collateral token to Gov vars @Bushstar (#1243)
🐛 Bug Fixes
- Finishing touches @prasannavl (#1300)
- Fix conventions and usd tests @prasannavl (#1297)
- Check collateral for migrating token @Bushstar (#1299)
- Tests for token splits @hidiego (#1284)
- Add concurrency for reward calculation to scale out @prasannavl (#1291)
- Scale auction bid and batches for split @Bushstar (#1296)
- Allow only one token split per block and reject token split on same block as setgov @Mixa84 (#1295)
- Fix for future swap owner rewards calc @prasannavl (#1293)
- Refund future swaps on split @Bushstar (#1290)
- Make setcollateraltoken and set/updateloantoken work old way before token migration to gov var @Mixa84 (#1289)
- Fix removal of last liquidity on empty used pool @Bushstar (#1287)
- Better logging for token splits @prasannavl (#1285)
- Fix mocknet activation params @prasannavl (#1286)
- Fix rtrim leaving dot behind @prasannavl (#1282)
- Restore token ID to list coll tokens @Bushstar (#1281)
- Minimally intrusive conservative cache tuning @prasannavl (#1269)
- Fix loan token flag for old token on split @Mixa84 (#1277)
- Correct no loan scheme typo @Bushstar (#1276)
- Search all pools for previous version suffix @Bushstar (#1270)
- Fix pool name bugs @Bushstar (#1266)
- Rename fortcanningspicegarden to fortcanningcrunch @Mixa84 (#1267)
- Use previous height when setting interest @Bushstar (#1263)
🧰 Maintenance
- Add logging for token splits @wafflespeanut (#1279)
- Remove comma from splits @Bushstar (#1274)
- Restore validation to setloantoken @Bushstar (#1268)
- 2.8.0 @Mixa84 (#1264)
- Backport RPCStats to master @Jouzo (#1260)
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.
v2.7.1
Recommended Upgrade
This is an optional, but recommended upgrade. Due to a bug on getgovheight
TX, there was an accidental deletion of attributes from the node index on block 1896000
. This resulted in statistical information being reset entirely. This update fixes the stats again.
Impact on the older nodes:
- The consensus is still correct, and old nodes can continue to function, as is - if statistical info is not a concern.
getburninfo
information that's based on attributes will be reset. Eg: DFI paybacklistgovs
=> All ofv0/live/economy/
information will reset and appear to have started from 0 from block1896000
.
Upgrade Notes
- If node is above block
1896000
, an invalidation to a block before this and reconsideration back to the tip is required to fix the stats again. Otherwise, it will still continue to display incorrect information. - Eg: After upgrade:
defi-cli invalidateblock c72d93b9897bbbebed505d8b23293fbcae5be5a767c6fbc4d67d25510d1b4066
followed bydefi-cli reconsiderblock c72d93b9897bbbebed505d8b23293fbcae5be5a767c6fbc4d67d25510d1b4066
Will fix the stats information again.
- Fresh sync or any snapshots below 1896000 should work as expected without any intervention.
Key highlights
🚀 Features
🐛 Bug Fixes
- test: Prevent wallet resubmitting TX after rollback @Bushstar (#1239)
- Test/payback v2 multiple error @hidiego (#1183)
- Add -isysroot to macOS native compile flags @Jouzo (#1203)
- Update test cases to remove
deprecatedHeight
usage. @shohamc1 (#1204) - Fix typos @hidiego (#1212)
- Revert "Fix dex loan token burns" @prasannavl (#1193)
🧰 Maintenance
- Refactor community balance logs @prasannavl (#1238)
- master - community balances in account change @Bushstar (#1235)
- fix typo and copy/paste error in documentation of withdrawfutureswap @solros (#1221)
- Fix mutex detection when building bdb on macOS @Jouzo (#1191)
- Remove master folder @Bushstar (#1185)
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.
v2.7.0 - Fort Canning Road
Mandatory Upgrade
This is a mandatory update for the upcoming Fort Canning Road chain upgrade. It contains a key fixes that upgrades the protocol.
Fort Canning Road upgrade is set for block 1786000 (approx. ETA April 11, 2022 UTC) on mainnet.
Update of mainnet node to v2.7.0
before the chain upgrade block is REQUIRED.
Upgrade Notes
- For nodes that are running
>= v2.6.1 and <= v2.6.2
, this is a drop in upgrade. No reindex or fresh sync needed. - 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 backup from 2.6.x or latest snapshot.
What’s Changed
Key Focus
- Implementation of
DFIP2203
: DeFiCh/dfips#127 - Generic loan payback. The blockchain now has the capability for enabling any loans in a vault to be payed back with any other token through DFI. The mechanism will use oracles to determine token prices if enabled and relying on
dToken->DUSD->DFI
swaps for interest paybacks. Note this is not enabled, and may or may not be enabled per token or globally. This is dependent on the governance direction taken and voted on by the community as seen fit.
Notables
- Expanding the DEX fee capability to be applied per pool, as well as per token to apply to all pools with a token.
- New account change logging category:
accountchange
- Changes to logging to reduce noise of masternode staking logs. Please see #648. (Thanks @chrizog).
Internals:
- LevelDB upstream update.
- Boost upstream update allowing successful builds on newer platforms.
RPC Changes
Beyond, new additions, changes are expected to be backward compatible.
-
Existing:
getpoolpair
/listpoolpairs
:- New fields:
dexFeeInPctTokenA
,dexFeeOutPctTokenA
,dexFeeInPctTokenB
,dexFeeOutPctTokenB
- New fields:
paybackloan
loans
field introduced which is an array of structured objects that specify the loan that is payed back and the token amounts used for payback. See help for more info.
listaccounthistory
- Now supports
txn
- Now supports
getburninfo
- New fields:
paybackfees
,paybacktokens
similar todfipaybackfee
anddfipaybacktokens
but for non DFI payback.
- New fields:
-
New:
futureswap
withdrawfutureswap
getfutureswapblock
listpendingfutureswaps
getpendingfutureswaps
🚀 Features
- DFI2203 Futures @Bushstar (#1155)
- Expand dex fee capability (#1118) @bvbfan (#1153)
- Generic DFI payback capability @Mixa84 (#1111)
- Update LevelDB @prasannavl (#1150)
- Add log category: accountchange @Jouzo (#1144)
- DUSD contributes to the 50% minimum required collateral @Jouzo (#1128)
- Add txn-no as a pagination token into listaccounthistory rpc @chanakasameera (#1110)
🐛 Bug Fixes
- Fix loan payback tokens amounts @bvbfan (#1178)
- Fix loan payback amounts @bvbfan (#1171)
- Invert DFIP2203 token flag. Fix bug in attrs to refund disabled token. @Bushstar (#1168)
- Update dockerignore @prasannavl (#1167)
- Fix lints @prasannavl (#1165)
- Vault history for new loan payback message @bvbfan (#1162)
- Fix accounting of payback burn and swap to DFI if payback token is different than native loan token or DFI. @Mixa84 (#1159)
- Update boost to v1.74 @prasannavl (#1143)
- log: Adjust masternode staking output to fix issue #648 @chrizog (#1006)
- Use tie for comparator @prasannavl (#1149)
- Fix number of totalAuctions in getloaninfo RPC @Jouzo (#1124)
- Add safety asserts on invalid values, full spectrum tests @prasannavl (#1086)
🧰 Maintenance
- DFIP2203 minted category and txn numbering @Bushstar (#1177)
- Update Boost to 1.75 @Bushstar (#1154)
- DFIP2203 updates @Bushstar (#1163)
- Protocol upgrade @prasannavl (#1160)
- 2.7.0-alpha version, protocol and FCR fork block @Bushstar (#1152)
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
893700
prior to this release. - Reference blockhash of testnet 893700:
ea1733c8b127c80b37236bbe6244670428228e5592d08ff307893425852dc113
- Note: Same upgrade notes as mainnet apply to testnet. Please reindex / restore as necessary.
Note: Certain test related infrastructure components (like defiscan.live) could take a while to reflect this change, due to the re-indexing constraints on the specific applications.
Testnet rollback tips (if needed):
$ defi-cli -testnet invalidateblock $(defi-cli -testnet getblockhash 893700)
$ defi-cli -testnet clearbanned
$ defi-cli -testnet reconsiderblock ea1733c8b127c80b37236bbe6244670428228e5592d08ff307893425852dc113
v2.6.2
Recommended Upgrade
This is a minor update, that primarily focuses on fixing nodes that result in crashes due a segfault in SPV under certain specific conditions, when it's turned on. Contains a few other minor additional fixes and features.
Upgrade Notes
- For nodes that are running
>= v2.6.1
, this is a drop in upgrade. No reindex or fresh sync needed. - 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.
What’s Changed
🚀 Features
- Implement
getaccounthistory
RPC @chanakasameera (#1102)
🐛 Bug Fixes
- Remove VLA and resolve warnings in SPV @Bushstar (#1131)
- Fix deadlock between blockchain and spv @bvbfan (#1139)
- Fix windows time @Bushstar (#1136)
- Use direct path in testpoolswap when available @Jouzo (#1115)
- Fix valid flag in decodecustomtx @bvbfan (#1054)
- Fix dex loan token burns @bvbfan (#1100)
- Add sync_blocks to fix failing deposittovault @hidiego (#1107)
- Test/poolswap enhanced tests + adapt loan to mainnet parameters @hidiego (#1072)
- Add missing cs_main lock before calling CheckPendingAnchors @Bushstar (#1096)
- Sync before clearing mempool @Bushstar (#1099)
- Fix restore UTXO test @Bushstar (#1080)
🧰 Maintenance
- C++17 @Jouzo (#1135)
- Version 2.6.2 @prasannavl (#1138)
- Simplify make.sh to use a single target instead of targets @prasannavl (#1137)
- Split make.sh build, fix lints, cleanup @prasannavl (#751)
- Test getinterest calculation @Jouzo (#1092)
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
835530
prior to this release. - Reference blockhash of testnet 835531:
542cc9c5490b46a228aa8c0878deba3b2c3f5a3e70b6d90bfab1171b153b8d66
- Note: Same upgrade notes as mainnet apply to testnet. Please reindex / restore as necessary.
Note: Certain test related infrastructure components (like defiscan.live) could take a while to reflect this change, due to the re-indexing constraints on the specific applications.
Testnet rollback tips (if needed):
$ defi-cli -testnet invalidateblock $(defi-cli -testnet getblockhash 835530)
$ defi-cli -testnet clearbanned
$ defi-cli -testnet reconsiderblock 542cc9c5490b46a228aa8c0878deba3b2c3f5a3e70b6d90bfab1171b153b8d66
v2.6.1
Mandatory Upgrade
This is a mandatory update for the upcoming Fort Canning Hill chain upgrade. It contains a key fixes that upgrades the protocol.
Fort Canning Hill upgrade is set for block 1604999 (approx. ETA Feb 7, 2022 UTC) on mainnet.
Update of mainnet node to v2.6.1
before the chain upgrade block is REQUIRED.
Upgrade Notes
- For nodes that are running
<= v2.5.0
, this is a drop in upgrade. No reindex or fresh sync needed. - 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 nodes that had already upgraded to the
2.6.0
prior to2.6.1
release, one of the following is required: a fresh sync, the most recent backup from 2.5.0, latest snapshot.
What’s Changed
v2.6.1
- The prior 2.6.0 release was retracted due to a mismatch in calculation between 2.5.0 and 2.6.0 that in rare conditions, caused the new nodes to reject valid blocks on 2.5.0 mainnet before the Fort Canning Hill Network upgrade. This is fixed in 2.6.1 and is the required node for Fort Canning Hill upgrade. The mismatch was due to a hidden bug in how 2.5.0 calculates
interestPerBlock
.2.6.1
nodes now addresses this condition recreating the calculation exactly as 2.5.0 pre-upgrade.
v2.6.0
Key Focus
- Loans - Existing Payback
- Issues with partial payback of loans from the previous versions are now fixed, and should work as expected after the upgrade block.
- For extremely small loans, before FCH, the min interest per. block is 1 fi per. block (min. unit) and is calculated every block. After FCH, these smaller loans will accumulate the last 1 fi over multiple blocks until payback or fully matures.
interestPerBlock
will continue to be at 1 fi precision, as that's still the min. unit. However, this will be the interest as per the block in which positions are closed.- New
realizedInterestPerBlock
will show higher precision interest rate that's used to accrue interest rate internally. Note the minimum unit of transactions on the blockchain still continues to be 1 fi precision. It only affects accumulation, so users aren't charged 1 fi every block.
- Loans - Payback Capability with DFI
- After FCH upgrade block, payback of loans with DFI instead of the dTokens at a set additional oracle fee, can be enabled. Currently, due to protocol serialisation requiring breaking changes, its capability is limited only to DUSD dToken. The internal capability is expected to be made generic and be expanded to all dTokens in the next planned upgrade. Note: however, this is just the capability. The activation and deactivation is designed to be toggled through on-chain gov.
- When DFI payback is used, the whole amount is burned (loan token value + loan interest value + % fees).
- New
getburninfo
API categories:dfipaybackfee
anddfipaybacktokens
- Loans - Withdrawal
- From FCH, 50% DFI requirement in vault is now relaxed to 50% of the vault's active min. loan. ratio as DFI. Rest can be withdrawn freely - withdrawing other collateral tokens before DFI to maintain 50% DFI is no longer required.
- Bi-directional DEX fees
- DEX now has the ability to charge a % fee on both the maker and taker, if enabled.
- This is designed to be activated, disabled and changed on the fly per pool pair through on-chain governance.
- New
getburninfo
API categories:dexfeetokens
- Built-in Supplementary Contracts
- A new built-in system for all supplementary smart contracts (eg. DFIP related smart contracts) with the following new RPCs:
listsmartcontracts
executesmartcontract
- dBTC-DFI swap (DFIP2201) is implemented via. this layer.
- These contracts are designed to be activated or disabled through on-chain governance.
- dBTC Swap:
executesmartcontract dbtcdfiswap 1@BTC
to swap dBTC to DFI if the contract is activated.
- A new built-in system for all supplementary smart contracts (eg. DFIP related smart contracts) with the following new RPCs:
RPC Changes
- Existing:
getburninfo
adds the following additional fields:dexfeetokens
dfipaybackfee
dfipaybacktokens
getinterest
adds the following field after FCH block:realizedInterestPerBlock
- New:
listsmartcontracts
executesmartcontracts
🚀 Features
- Accounting tokens / penalty payed via DFI @bvbfan (#1060)
- Payback of DUSD loan with DFI @Mixa84 (#1024)
- High precision interest calculation @Mixa84 (#991)
- Smart contract exchange of BTC for DFI @Bushstar (#1045)
- Add getversioninfo @mambisi (#941)
- Bi-directional DEX fee burn capability @bvbfan (#1031)
- Add option regtest to simulate mainnet target time span and spacing @bvbfan (#1037)
- Add custom path option to testpoolswap RPC @Jouzo (#1021)
- Test liquidity rewards when poolpair status is false @Jouzo (#1027)
🐛 Bug Fixes
- Fix node message in functional tests @bvbfan (91d4602)
- Fix gov attributes set @bvbfan (07e8f08)
- Fix interest per block float calculation @bvbfan (ed5daaa)
- Higher precision interest per block info @prasannavl (#1082)
- Format DFI payback fee @Bushstar (#1081)
- Make burninfo API more discoverable @prasannavl (#1077)
- Add pre and post fork loan checks @hidiego (#1075)
- Fix format of immature interest @Mixa84 (#1076)
- Reduce FCH migration to a single block @prasannavl (#1073)
- Allow internal zero swaps @prasannavl (#1071)
- Fix pool swap zero amount result @bvbfan (#1067)
- Resolve mempool segfault @Bushstar (#1061)
- Use head commit instead of base branch merge for PR tests @hidiego (#1051)
- Don't count minted coins in block stats @bvbfan (#1048)
- Collateral increases in value and should be able to be withdrawn @Jouzo (#988)
- Fix mempool reorg issue @bvbfan (#1034)
- Fix llvm CI error @Bushstar (#1041)
- Floor token swap result @bvbfan (#1023)
🧰 Maintenance
- Update test to resolve rare inconsistency @Bushstar (#1065)
- Tests: Replace sync_all with sync_blocks/sync_mempools @Bushstar (#1074)
- Update logs and error message in mn_checks.cpp @Jouzo (#1066)
- Cleanups + indentation @bvbfan (#1063)
- Refactor smart contracts @prasannavl (#1057)
- Show DEx fee percentage in pool pair JSON output @Bushstar (#1058)
- Refactor gov attributes value (#1055) @prasannavl (#1056)
- Rename vars. Update test to avoid errors. @Bushstar (#1050)
- Test whether DUSD can be used as collateral @Jouzo (#1043)
- Better define composite swap behaviour @Bushstar (#956)
- Remove unused vars in mn_checks @Jouzo (#1036)
- Get attrs direct from Gov view @Bushstar (#1033)
- Save attributes in view @Bushstar (#1032)
- Add ATTRIBUTES Gov var @Bushstar (#998)
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 upgrade block for FCH is set to
828900
- Reference blockhash of testnet 827500:
1f8ae3e7881bfaf45414798824eb8c415be512cf29aea4c5316828887400db36
- Note: Same upgrade notes as mainnet apply to testnet. Please reindex / restore as necessary.
Note: Certain test related infrastructure components (like defiscan.live) could take a while to reflect this change, due to the re-indexing constraints on the specific applications.
Testnet rollback tips (if needed):
$ defi-cli -testnet invalidateblock $(defi-cli -testnet getblockhash 827500)
$ defi-cli -testnet clearbanned
$ defi-cli -testnet reconsiderblock 1f8ae3e7881bfaf45414798824eb8c415be512cf29aea4c5316828887400db36
v2.5.0
Recommended Update
What’s Changed
- Protocol version has been bumped to
70023
due to the changes in the supported TX set. - Fixes the case where unsupported TXs (say, now invalid ICX TX submitted from a 2.3.x node) caused the valid nodes to rollback excessively, which resulted in stalls in the blockchain when all miners end up in rollbacks at the same time due to the invalid DfTx. This provides better handling of unsupported TXs. Invalid TXs will no longer cause rollbacks.
- Adds an additional checkpoint at
1505965
(f7474c805de4f05673df2103bd5d8b8dea09b0d22f808ee957a9ceefc0720609
).
🐛 Bug Fixes
- Version 2.5.0 @prasannavl (#1017)
- Reject block that contains unsupported custom txs @bvbfan (#1018)
🧰 Maintenance
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.
v2.4.0
Emergency Update
What’s Changed
- ICX / Atomic Swap - a feature that has been in experimental mode has been disabled with immediate effect temporarily. It's expected to be re-enabled in a later future update.
- Fort Canning Park height set to
1503143
- Hash of
1503143
:c85a2bdb6014cc57da0d6d85a0d28f5b189050af93b43a1a17c2f5268e9daf30
of chain running 2.4.0. - Hash of
1503240
:061f56655a33ee562758f4eb83203f8071e57f571bd32c7a016cf8fb88743ca5
🐛 Bug Fixes
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.
Issues
Please report any issues to engineering@defichain.com, or reach out to is via Telegram or Reddit.
v2.3.2
Optional Update
What’s Changed
- This is an optional update with a many minor fixes and a few new features.
testpoolswap
now adds support for compositeswap. Adds apath
args, which continues to default todirect
to retain compatibility, while the a new optionauto
that automatically use composite swap if there is not direct path available. Seehelp testpoolswap
for more details.*
is now accepted for address arg forplaceauctionbid
andpaybackloan
to use indicate auto address selection, with sufficient funds.- This update also fixes the testnet fresh sync failure due to blocks with mining height discrepancies.
- Fixed discrepancies in
getloaninfo
RPC. - Fixed
getmasternodeblocks
depth filter.
Details
- Enable composite swap for
testpoolswap
@mambisi (#954) - Add start BTC height and record limit to spv_listanchors @Bushstar (#921)
- Adds possibility to use "*" to auto-select address in placeauctionbid and paybackloan @Jouzo (#937)
- Fix getmasternodeblocks depth filtering @hidiego (#946)
- Rework mempool accounts view @bvbfan (#904)
- Factor out usage of height field in CBlockIndex and CBlockHeader @Bushstar (#987)
- Fix boost 1.77 compilation @bvbfan (#997)
- Fix wrong number of openVaults and openAuctions in getloaninfo @Jouzo (#986)
Full changelog: v2.3.1...v2.3.2
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.
v2.3.1
Recommended Update
What’s Changed
This is a recommended update with key fixes for Fort Canning Museum. But isn't mandatory to be a part of the network (however, without this update, the node may be keen to discover other forks).
- This fixes a condition where pre-Fort Canning Museum loans, had a discrepancy in the internal interest rate calculation which caused it to be off by 1 fi (DeFiChain satoshis). This in turn made miners more prone to generate valid forks. Note: The main chain continued to remain valid and is still the longest chain.
- A
reindex
is required if you're node is on or after blockheight1430640
during the time of the upgrade. Any pre-Fort Canning Museum snapshots of the indexes are still valid.
Network snapshots (optional, for convenience)
- [Asia] https://defi-snapshots.s3.ap-southeast-1.amazonaws.com/snapshot-mainnet-1435343.zip
- [EU] https://defi-snapshots-europe.s3.eu-central-1.amazonaws.com/snapshot-mainnet-1435343.zip
- [Sydney] https://defi-snapshots-sydney.s3.ap-southeast-2.amazonaws.com/snapshot-mainnet-1435343.zip
- [US] https://defi-snapshots-us.s3.amazonaws.com/snapshot-mainnet-1435343.zip
Details
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.
v2.3.0 - Fort Canning Museum
Note: This version while not yet deprecated, is discouraged. A higher version has been released. Please use one of the higher versions to upgrade.
Emergency Update
What’s Changed
- This fixes a critical condition due to which certain auctions can stall the blockchain due to a few sats of left over loans, with no collateral after payback.
🚀 Features
- Prefer tx entry time order for a block @bvbfan (#950)
- Adds estimateloan RPC @Jouzo (#924)
- Adds estimatecollateral RPC @Jouzo (#927)
- Add optional vaultId input parameter to listauctionhistory @bvbfan (#915)
- Adds estimatevault RPC @Jouzo (#933)
- Add vault history DB and listvaulthistory RPC call @Bushstar (#898)
🐛 Bug Fixes
- Add latest hotfix changes into master @Bushstar (#960)
- Erase vault history loan scheme records @bvbfan (#931)
- Fix updateloantoken arguments parsing and description @Jouzo (#895)
🧰 Maintenance
- Version 2.3.0 @prasannavl (#963)
- Fix build suffix for all branches and introduce hotfix @prasannavl (#919)
- Well define masternode states @bvbfan (#936)
- Remove dead code @bvbfan (#893)
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.