Releases: DeFiCh/ain
v2.9.4
Optional Upgrade
- Fixes heavy CPU usage on 2.9.3 due to unnecessary socket wake-ups.
What’s Changed
🐛 Bug Fixes
- Revert back to BR socket code instead of poll based BTC socket @prasannavl (#1408)
🧰 Maintenance
- Version 2.9.4 @prasannavl (#1409)
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.9.3
Recommended Upgrade
Optional, yet recommended upgrade which includes a number of small fixes including long-standing stability and memory issues that were caused by the SPV. In particular, this fixes many occasional crashes that may appear as IO errors which were caused by the SPV code closing incorrect file descriptors, resulting in the corruption of the blockchain database.
Upgrade Notes
- For nodes >= 2.9.1, this is a drop in upgrade. No reindex required.
- 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.
What’s Changed
🚀 Features
🐛 Bug Fixes
- Delete old confirms to prevent ballooning memory usage @Bushstar (#1384)
- Fix interestPerBlock for high precision values @prasannavl (#1405)
- Fix depth argument in getmasternodeblocks @Bushstar (#1402)
- Make shutdown handling safer @prasannavl (#1404)
- Prevent SPV closing sockets in use @Bushstar (#1398)
- Clone bitcoin-core/qa-assets only when running fuzz tests @Jouzo (#1401)
- Fix for testpoolswap auto selection on disabled pools @prasannavl (#1394)
🧰 Maintenance
- Version 2.9.3 @prasannavl (#1406)
- Use custom cache size anchor and SPV DBs @Bushstar (#1383)
- Remove Boost Thread and Chrono @Bushstar (#1396)
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.9.2
Recommended Upgrade
This is a recommended upgrade that adds two fixes:
- Fixes composite swap path selection, so that direct paths of disabled pools aren't chosen (esp. relevant after the addition of USDC-DUSD and USDT-DUSD pools that won't be active until liquidity targets are achieved).
- Fixes the ordering of
getmasternodeblocks
to get accurate output.
Upgrade Notes
- From 2.9.1, this is a drop in upgrade. No reindex required.
- If already upgrading from 2.9.0, this requires either a reindex, resync from a 2.8.x or 2.9.1 snapshots or any core team provided snapshots.
- 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.
Recent Snapshot
- https://defi-snapshots.s3.ap-southeast-1.amazonaws.com/snapshot-mainnet-2072300.zip
- More from: https://defi-snapshots.s3.ap-southeast-1.amazonaws.com/index.txt
🐛 Bug Fixes
- Fix swap when direct path disabled @Bushstar (#1392)
- Order getmasternodeblocks results @prasannavl (#1391)
🧰 Maintenance
- Version 2.9.2 @prasannavl (#1393)
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
.
Issues
Please report any issues to [email protected], or reach out to is via Telegram or Reddit.
v2.9.1
Recommended Upgrade
This is a highly recommended upgrade, esp. for miners. This fixes a bug in the commissions in 2.9.0. For miners, it is important to upgrade to this release, preferably before the Fort Canning Spring, upgrade block.
If you are currently on 2.9.0, it is recommended that you delete the current datadir and fall back to the latest snapshot before you upgrade to 2.9.1.
If you are not-mining and are currently on 2.9.0, upgrade is optional but recommended (on 2.9.0, you may see sporadic excess commissions, but will not be spendable on the network).
Upgrade Notes
- If upgrading from 2.8.x or 2.8.x snapshots, this is a drop in upgrade. No reindex required.
- If already upgaded to 2.9.0, this requires either a reindex, or a resync from a 2.8.x based snapshot. (All DeFiChain core team provided snapshots are valid).
- 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.8.x or latest snapshot.
Snapshots
🐛 Bug Fixes
- Restore minttoken by owner for DATs @Bushstar (#1361)
- Revert commissions fix, updates logaccountbalances @prasannavl (#1370)
🧰 Maintenance
- Version 2.9.1 @prasannavl (#1373)
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.9.0 - Fort Canning Spring
Mandatory Upgrade
This is a mandatory update for the upcoming Fort Canning Spring chain upgrade. It contains key upgrades for the protocol.
Fort Canning Spring upgrade is set for block 2033000 (approx. ETA July 6, 2022 UTC) on mainnet.
Update of mainnet node to v2.9.0
before the chain upgrade block is REQUIRED.
Upgrade Notes
- For nodes that are running
>= v2.8.0
, this is a drop in upgrade. Fresh sync or reindex is not required, however optionally reindex adds an extra feature-set-dexstats
, which provide detailed statistical information on swaps. No reindex needed, if the feature is not necessary. - 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 or latest snapshot.
What’s Changed
Key Focus
- Implementation of the technical capability in DeFiCh/dfips#170:
- [Mainnet ready] DeFiCh/dfips#162
- [Mainnet ready] DeFiCh/dfips#163
- [Testnet ready] DeFiCh/dfips#167
- DEX stats (
-dexstats
flag allows statistical break up of pool swap information. This requires a reindex. - Adds token split records into account history (reindex / revalidation from token split block needed), and also enables a
format
flag forlistaccounthistory
.
🚀 Features
- Add fee_pct alias for reward_pct @Bushstar (#1359)
- Expose live dex statistics @bvbfan @Mixa84 (#1214)
- DFI to DUSD FutureSwap @Bushstar (#1355)
- Add optional
format
flag forlistaccounthistory
@hidiego (#1330) - Burn loan interest in DUSD instead of swapping to DFI @Mixa84 (#1357)
- Asymmetric pool swap fee @Bushstar (#1354)
- Add -checkpoints-file flag to defid @Jouzo (#1347)
- util: Add -shutdownnotify option. @Jouzo (#1345)
🐛 Bug Fixes
- Add logaccountbalances @prasannavl (#1333)
- Fix commission for first deposit after fork @Bushstar (#1348)
- Fixes type check on verbose parameter for
getvault
@hidiego (#1344)
🧰 Maintenance
- Fort Canning Spring @prasannavl (#1358)
- Track token and pool splits in account history @Bushstar (#1332)
- Add two additional checkpoints to reduce max disk usage @Jouzo (#1356)
- Return log categories sorted by name @Jouzo (#1351)
- Replace Boost variant @Bushstar (#1334)
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.8.1
Optional Upgrade
This is an optional upgrade that includes performance and RPC side improvements.
Key focus
- In-node per RPC cache, enabled by default (can be disabled with
-rpccache=0
), to speed up same list and get queries on the same block heights. Caches skip the global lock path entirely - so cache hits should reduce the overall load on the node. - Performance improvements to
getloaninfo
(scales out) andgetburninfo
(minor). - Token split block will be expensive (takes a few seconds to mins - see #1291 and #1313 for more info.
Important
This version also introduced -consolidaterewards
as follows, but is known to have an issue resulting in corrupt data and please do not use this flag, or result in a chain split.
From the previous release notes - purely for historical purposes only:
- Introduces
-consolidaterewards=<token/pool-symbol>
start-up flag that can pre-optimize the rewards calculations of each address associated with a token or pool, or every address in the index when blank. This helps speed-up validation on multiple fronts, but especially targeted towards smooth token split blocks which would otherwise be expensive.
🚀 Features
- Add in-node RPC cache, optimize getloaninfo, refactor getburninfo @prasannavl (#1327)
- Support of consolidating rewards on start @prasannavl (#1313)
- Interest per block value and amounts on getvault @hidiego (#1314)
- Verbose flag to getvault to get nextCollateralRatio @hidiego (#1312)
- Reenable the option to disable checkpoints @prasannavl (#1309)
- Disable building benchmarks on CI dev builds temporarily @Jouzo (#1308)
🐛 Bug Fixes
- Revert "Test add missing tests + fix index filtering listauctionhistory" @prasannavl (#1329)
- Fix interest rate string on logs, minor refactor @prasannavl (#1325)
- Change stop-block behavior to invalidate to ensure full validation cycle @prasannavl (#1318)
- Test add missing tests + fix index filtering listauctionhistory @hidiego (#1215)
- Add revert for PaybackV2 @Mixa84 (#1316)
- Return -1 value on getvault when tokens are locked @hidiego (#1311)
- Uses sysctl -n hw.logicalcpu instead of nproc on macOS @Jouzo (#1307)
- Test vault usd value split @hidiego (#1302)
🧰 Maintenance
- Move boost up to 1.77 @prasannavl (#1328)
- Remove Boost scoped_ptr and scoped_ptr @Bushstar (#1320)
- Remove Boost Optional @Bushstar (#1319)
- Improve mocknet simulation params @prasannavl (#1323)
- Remove MakeUnique @Bushstar (#1315)
- Log fd limits, minor cleanup @prasannavl (#1310)
- Resolve most compiler warnings @Bushstar (#1305)
- Add collateral test @Bushstar (#1303)
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.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