Releases: Martin8617/Defi-Node-for-Raspberry-Pi
v2.6.1
- Defi Node for Raspberry Pi with official Raspberry Pi OS (32-bit) as armv7l
- Defi Node for Raspberry Pi with beta Raspberry Pi OS (64-bit) as arm64
Information copied from DeFiCh/ain/releases
Compiled from Source code @Martin8617
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)
v2.5.0
- Defi Node for Raspberry Pi with official Raspberry Pi OS (32-bit) as armv7l
- Defi Node for Raspberry Pi with beta Raspberry Pi OS (64-bit) as arm64
Information copied from DeFiCh/ain/releases
Compiled from Source code @Martin8617
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
to start a DeFi Blockchain daemon. The client (CLI) can be found at bin/defi-cli
.
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/Martin8617/Defi-Wallet-for-Raspberry-Pi/releases for the latest releases.
v2.4.0
- Defi Node for Raspberry Pi with official Raspberry Pi OS (32-bit) as armv7l
- Defi Node for Raspberry Pi with beta Raspberry Pi OS (64-bit) as arm64
Information copied from DeFiCh/ain/releases
Compiled from Source code @Martin8617
Emergency Update
What’s Changed
🚀 Features
- 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.
🐛 Bug Fixes
- Disable ICX - Version 2.4.0 @Bushstar (#1010)
How to run?
Download and untar the relevant version to your operating system, run bin/defid
to start a DeFi Blockchain daemon. The client (CLI) can be found at bin/defi-cli
.
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/Martin8617/Defi-Wallet-for-Raspberry-Pi/releases for the latest releases.
v2.3.1
- Defi Node for Raspberry Pi with official Raspberry Pi OS (32-bit) as armv7l
- Defi Node for Raspberry Pi with beta Raspberry Pi OS (64-bit) as arm64
Information copied from DeFiCh/ain/releases
Compiled from Source code @Martin8617
What’s Changed
Recommended Update
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
to start a DeFi Blockchain daemon. The client (CLI) can be found at bin/defi-cli
.
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/Martin8617/Defi-Wallet-for-Raspberry-Pi/releases for the latest releases.
v2.3.0
- Defi Node for Raspberry Pi with official Raspberry Pi OS (32-bit) as armv7l
- Defi Node for Raspberry Pi with beta Raspberry Pi OS (64-bit) as arm64
Information copied from DeFiCh/ain/releases
Compiled from Source code @Martin8617
Emergency Release - Mandatory Upgrade
This is a mandatory update for Fort Canning.
- 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.
What’s Changed
🚀 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
to start a DeFi Blockchain daemon. The client (CLI) can be found at bin/defi-cli
.
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/Martin8617/Defi-Wallet-for-Raspberry-Pi/releases for the latest releases.
v2.2.1
- Defi Node for Raspberry Pi with official Raspberry Pi OS (32-bit) as armv7l
- Defi Node for Raspberry Pi with beta Raspberry Pi OS (64-bit) as arm64
Information copied from DeFiCh/ain/releases
Compiled from Source code @Martin8617
What’s Changed
Optional update
- Fixes help RPC
- Fixes Insufficient balance error that was caused due to stricter auto auth selection introduced in the previous version - has been reverted temporarily.
- Improves validation performance by minor optimizations to vaults by removing the need to iterate on each block.
Details
- Revert auto auth selecting protection @bvbfan (#911)
- Fix test deposittovault @hidiego (#900)
- Prevent vaults iteration on every block @bvbfan (#906)
- Fix RPC help and test failure @Bushstar (#905)
- Add liquidation of DUSD in basic test @Mixa84 (#908)
How to run?
Download and untar the relevant version to your operating system, run bin/defid
to start a DeFi Blockchain daemon. The client (CLI) can be found at bin/defi-cli
.
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/Martin8617/Defi-Wallet-for-Raspberry-Pi/releases for the latest releases.
v2.2.0
- Defi Node for Raspberry Pi with official Raspberry Pi OS (32-bit) as armv7l
- Defi Node for Raspberry Pi with beta Raspberry Pi OS (64-bit) as arm64
Information copied from DeFiCh/ain/releases
Compiled from Source code @Martin8617
Pre-upgrade Emergency Release - Mandatory Upgrade
This is a mandatory update for the upcoming Fort Canning chain upgrade. It contains a key fix that upgrades the protocol over the previous v2.x.x
releases that were originally intended node for the next network upgrade . v2.2.0
(this) now effectively replaces all v2.x.x
before it and is the required node.
Fort Canning upgrade is set for block 1367000 (approx. ETA Monday, 15 Nov 2021) on mainnet.
NOTE: Update of mainnet node to
v2.2.0
before the chain upgrade block is REQUIRED.
What’s Changed
Key Focus
- 2.2.0 disables the following RPCs for fort canning network upgrade due, until a later release to enable similar/same features:
- updatemasternode
- setforcedrewardaddress
- remforcedrewardaddress
v2.2.0 Specific Info
- Disable updatemasternode, and reward address change @prasannavl (#901)
- Update failing tests for recent changes @Bushstar (#902)
- Use mocktime in deposittovault tests @hidiego (#896)
How to run?
Download and untar the relevant version to your operating system, run bin/defid
to start a DeFi Blockchain daemon. The client (CLI) can be found at bin/defi-cli
.
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/Martin8617/Defi-Wallet-for-Raspberry-Pi/releases for the latest releases.
v2.1.0
- Defi Node for Raspberry Pi with official Raspberry Pi OS (32-bit) as armv7l
- Defi Node for Raspberry Pi with beta Raspberry Pi OS (64-bit) as arm64
Information copied from DeFiCh/ain/releases
Compiled from Source code @Martin8617
Mandatory update
This is a mandatory update for the upcoming Fort Canning chain upgrade. It contains a key fix that upgrades the protocol over the previous v2.0.0 that was originally intended node for the next network upgrade . v2.1.0
(this) now effectively replaces v2.0.0
and is the required node.
Fort Canning upgrade is set for block 1367000 (approx. ETA Monday, 15 Nov 2021) on mainnet.
NOTE: Update of mainnet node
v2.1.0
before the chain upgrade block is REQUIRED.
What’s Changed
Key Focus
-
v2.1.0
fixes a bug due to which DUSD loans became unpayable on testnet. This was a result of a missing specialised short-circuit for DUSD, while converting interest and over bids to DFI to be burnt or added back to the vaults over the respective pools (#885). -
Previous
getgov
API has now been restored. Inv2.0.0
, getgov encountered a breaking change. From gathered feedback, we recognised other projects relied heavily on this API and such this change has been reverted.listgov
can be used to pull the new information with the activation heights thatgetgov
added inv2.0.0
, which led to the original change. While this unfortunately means, those who have already adopted to the newer API fromv2.0.0
will have to revert these changes, we believe this restoration is the optimal choice for most projects to retain compatibility. (#871)
For Fort Canning
-
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):
listpoolpairs
andgetpoolpair
RPCs now include additional field:rewardLoanPct
. -
(#711):
listaccounthistory
RPC now only includes a record if the transaction is trusted (confirmation > 0).
v2.1.0 Specific Info
🐛 Bug Fixes
- Revert history records @bvbfan (#890)
- Fix DUSD loan payback bug due to missing short-circuit @prasannavl (#885)
- Don't show zero rewards @bvbfan (#887)
- Fix new regression @bvbfan (#876)
- Fix pagination issue @Mixa84 (#880)
- Sync nodes before check @Bushstar (#879)
- Fix pool share rewards regression @bvbfan (#872)
- Prevent selecting auto auth outputs @bvbfan (#875)
🧰 Maintenance
- Bump protocol version to 70021 @prasannavl (#892)
- Version 2.1.0 @prasannavl (#891)
- Disable minting loan token on mainnet @bvbfan (#878)
- Fix minor auction history typo @Jouzo (#883)
- Restore previous getgov behaviour @Bushstar (#871)
- Add all new FC and Oracle DfTx to getcustomtx tests @Bushstar (#874)
- Remove obsolete compatibility @bvbfan (#868)
- Minor refactors to improve readability @bvbfan (#865)
- Fix missing rpc_vault HelpExampleRpc @Jouzo (#889)
How to run?
Download and untar the relevant version to your operating system, run bin/defid
to start a DeFi Blockchain daemon. The client (CLI) can be found at bin/defi-cli
.
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/Martin8617/Defi-Wallet-for-Raspberry-Pi/releases for the latest releases.
v2.0.0
- Defi Node for Raspberry Pi with official Raspberry Pi OS (32-bit) as armv7l
- Defi Node for Raspberry Pi with beta Raspberry Pi OS (64-bit) as arm64
Information copied from DeFiCh/ain
Compiled from Source code @Martin8617
Mandatory update
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.
NOTE: Update of mainnet node before the chain upgrade block is REQUIRED.
What’s Changed
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).
How to run?
Download and untar the relevant version to your operating system, run bin/defid
to start a DeFi Blockchain daemon. The client (CLI) can be found at bin/defi-cli
.
v1.8.4
- Defi Node for Raspberry Pi with official Raspberry Pi OS (32-bit) as armv7l
- Defi Node for Raspberry Pi with beta Raspberry Pi OS (64-bit) as arm64
Information copied from DeFiCh/ain
Compiled from Source code @Martin8617 (#1030)
Optional update
- Resolve two issue, getmasternodeblocks not reporting blocks after the EunosPaya hard fork and the fee being too small on some accounttoutxos transactions.
🐛 Bug Fixes
- Make dummy data specific to TX @Bushstar (#730)
- Fix getmasternodeblocks to retrieve all blocks from all subnodes @prasannavl (#717)
🧰 Maintenance
- v1.8.4 @Bushstar (#729)
- Update minor version @prasannavl (#708)
How to run?
Download and untar the relevant version to your operating system, run bin/defid
to start a DeFi Blockchain daemon. The client (CLI) can be found at bin/defi-cli
.