Releases: DeFiCh/ain
Releases · DeFiCh/ain
v4.1.8
Optional Upgrade
Highlights
- dToken Restart:
- Allow 1:1 upgrades via the DST20 version 3 contract.
- Restore loan and collateral amounts from auctions to vaults.
Upgrade Notes
- From
v4.1.x
: Drop in upgrade. - All other older nodes: Fresh sync or bootstrap from snapshots 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.
Network Snapshot
- [Asia] https://defi-snapshots.s3.ap-southeast-1.amazonaws.com/index.txt
- [EU] https://defi-snapshots-europe.s3.eu-central-1.amazonaws.com/index.txt
- [Sydney] https://defi-snapshots-sydney.s3.ap-southeast-2.amazonaws.com/index.txt
- [US] https://defi-snapshots-us.s3.amazonaws.com/index.txt
What's Changed
- Restart: Restore loan and collateral from auctions to vaults by @Bushstar in #3053
- Upgrade DST20 contract to allow 1:1 splits by @Bushstar in #3059
- v4.1.8 by @Bushstar in #3060
Full Changelog: v4.1.7...v4.1.8
v4.1.7
Optional Upgrade
Highlights
- Mining
- After fork only mint blocks with time greater than previous blocks.
- On dToken restart check token locks and pools status before adding EVM and creation TXs.
- dToken Restart:
- Check optional collateral valid before usage.
- Add loan payback history entries.
Upgrade Notes
- From
v4.1.x
: Drop in upgrade. - All other older nodes: Fresh sync or bootstrap from snapshots 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.
Network Snapshot
- [Asia] https://defi-snapshots.s3.ap-southeast-1.amazonaws.com/index.txt
- [EU] https://defi-snapshots-europe.s3.eu-central-1.amazonaws.com/index.txt
- [Sydney] https://defi-snapshots-sydney.s3.ap-southeast-2.amazonaws.com/index.txt
- [US] https://defi-snapshots-us.s3.amazonaws.com/index.txt
What's Changed
- Mining: Toggle ascending via Gov var by @Bushstar in #3041
- Restart: Check collateral valid before usage by @Bushstar in #3047
- add history entries for loan payback during dToken restart by @kuegi in #3042
- Miner: Check loan tokens are not locked before adding dToken restart by @Bushstar in #3048
- RPC: add missing entry in conversiontable by @kuegi in #3051
- Restart: Check pools valid by @Bushstar in #3050
- v4.1.7 by @prasannavl in #3022
Full Changelog: v4.1.6...v4.1.7
v4.1.6
Optional Upgrade
Highlights
- Sets the Changi hard fork to block 2,241,000, approx Sep 7th 14:00 UTC.
- Introduces the following features to be enabled after the next hard fork:
- Governance
- dToken restart
- Rejecting blocks with a time prior to the previous block
Upgrade Notes
- From
v4.1.x
: Drop in upgrade. - All other older nodes: Fresh sync or bootstrap from snapshots 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.
Network Snapshot
- [Asia] https://defi-snapshots.s3.ap-southeast-1.amazonaws.com/index.txt
- [EU] https://defi-snapshots-europe.s3.eu-central-1.amazonaws.com/index.txt
- [Sydney] https://defi-snapshots-sydney.s3.ap-southeast-2.amazonaws.com/index.txt
- [US] https://defi-snapshots-us.s3.amazonaws.com/index.txt
What's Changed
- fix: revert wrong refactor of GetLoanTokensForFutures by @kuegi in #3039
- v4.1.6 by @prasannavl in #3021
Full Changelog: v4.1.5...v4.1.6
v4.1.5
[Release pulled due to: https://github.com//pull/3039].
Please continue to use:
- mainnet: 4.1.4
- testnet: 4.1.4
- changi / devnet: dev-builds until 4.1.6 release: https://github.com/DeFiCh/ain/actions/runs/10747274894?pr=3021
v4.1.4
Optional Upgrade
Highlights
- Fixes long standing bugs in using
-consolidaterewards
flag for multiple tokens in one go.-consolidaterewards
is now expected to be usable for full optimization across all addresses. - Optimized mining support with additional strategies beyond the default.
- Future flagged fixes: Bugs in upcoming static reward calculation.
Upgrade Notes
- From
v4.1.x
: Drop in upgrade. - All other older nodes: Fresh sync or bootstrap from snapshots 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.
Network Snapshot
- [Asia] https://defi-snapshots.s3.ap-southeast-1.amazonaws.com/index.txt
- [EU] https://defi-snapshots-europe.s3.eu-central-1.amazonaws.com/index.txt
- [Sydney] https://defi-snapshots-sydney.s3.ap-southeast-2.amazonaws.com/index.txt
- [US] https://defi-snapshots-us.s3.amazonaws.com/index.txt
What's Changed
- Return crossboundary error message debug info by @Jouzo in #2980
- Add interruptblock RPC by @Jouzo in #2982
- Enable snapshots by default by @Bushstar in #2986
- chore: remove repetitive words by @pkucode in #2993
- Fix failing tests by @Bushstar in #2994
- Add missing prefix checks and fix overlaps by @Bushstar in #2996
- build: fix rust toolchain to 1.79 by @prasannavl in #3005
- build: require python3-dev dependency on all platforms by @prasannavl in #3007
- fix: test dep web3 py package by @prasannavl in #3008
- ci: use requirements file for py deps by @prasannavl in #3009
- tests: fix flaky tests that fail due to type strictness by @prasannavl in #3010
- tests: better resilience for concurrent node starts by @prasannavl in #3011
- fix: ConsolidateRewards batch consolidation bugs by @kuegi in #3002
- test: getcustomtx intermittent failure by @Bushstar in #3016
- Update account history for static rewards. Fix off by one bug. by @Bushstar in #3018
- Add startup flag to set miner strategy by @Bushstar in #2975
- Calculate static rewards by getting start balance from the block before by @Bushstar in #3024
- v4.1.4 by @prasannavl in #3019
New Contributors
Full Changelog: v4.1.3...v4.1.4
v4.1.3
Optional Upgrade
Highlights
-enablesnapshots
for implicit LevelDB snapshot on each block. This enables all the RPCs to bypass the global chain lock and to serve requests in parallel. Default is off for now to only take a snapshot when required as we learn from the effects at scale before changing defaults.
Upgrade Notes
- From
v4.1.x
: Drop in upgrade. - All other older nodes: Fresh sync or bootstrap from snapshots 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.
Network Snapshot
- [Asia] https://defi-snapshots.s3.ap-southeast-1.amazonaws.com/index.txt
- [EU] https://defi-snapshots-europe.s3.eu-central-1.amazonaws.com/index.txt
- [Sydney] https://defi-snapshots-sydney.s3.ap-southeast-2.amazonaws.com/index.txt
- [US] https://defi-snapshots-us.s3.amazonaws.com/index.txt
What's Changed
- chore: add listgovs and logevmaccountstates in sync logs by @canonbrother in #2872
- Static pool reward by @Bushstar in #2924
- Snapshot on each block by @Bushstar in #2723
- Allow MineBlocksOnDemand on mocknet by @Jouzo in #1638
- Migrate all RPC calls to use snapshot by @Bushstar in #2719
Full Changelog: v4.1.2...v4.1.3
v4.1.2
Optional Upgrade
Highlights
-ascendingstaketime
flag in preparation for the next upgrade's behavior for miners to reject blocks in past time.- Increase timeouts for block downloads and stale peer checks.
- This was a cause of nodes not being to recover quickly and took longer that expected to self-heal, giving the false impression that it has stalled on a wrong fork.
- Improved
utxostoaccount
by only selecting coins on the source address if possible - Skip address ownership check on
accounttoaccount
,utxostoaccount
andsendtokenstoaddress
using-dvmownerskipcheck
- Minor quality-of-life updates for the testing framework
Upgrade Notes
- From
v4.1.x
: Drop in upgrade. - All other older nodes: Fresh sync or bootstrap from snapshots 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.
Network Snapshot
- [Asia] https://defi-snapshots.s3.ap-southeast-1.amazonaws.com/index.txt
- [EU] https://defi-snapshots-europe.s3.eu-central-1.amazonaws.com/index.txt
- [Sydney] https://defi-snapshots-sydney.s3.ap-southeast-2.amazonaws.com/index.txt
- [US] https://defi-snapshots-us.s3.amazonaws.com/index.txt
What's Changed
- setloantoken set dust output for collateral by @Bushstar in #2945
- Allow flag to disable wallet ownership checks by @prasannavl in #2953
- Skip pre-eunospaya vout check on regtest by @Bushstar in #2954
- regtest: Relax minting by @prasannavl in #2952
- Add missing bayfront arg to simulate slippage protection in tests by @prasannavl in #2950
- tests: Add TokenAmount abstraction by @prasannavl in #2951
- accounts: improved utxosToAccount by @kuegi in #2944
- Fix typo in dvmownerskipcheck flag by @prasannavl in #2956
- Use wrapper functions by @Bushstar in #2962
- added tests for new utxosToAccount logic by @kuegi in #2963
- Increase timeouts for stale nodes and block downloads by @Bushstar in #2965
- Fix flaky tests by @Bushstar in #2964
- Estimated rewards for anchors use post-AMK logic by @Bushstar in #2961
- Update consensus that blocks must be in chronological order by @Bushstar in #2933
Full Changelog: v4.1.1...v4.1.2
v4.1.1
Optional Upgrade
Highlights
- Complete rewrite of the EVM tracer architecture.
debug_traceCall
enabled.
- Minor bugs on
getblock
verbosity 3, and 4. - [Breaking] Minor changes to the log format of debug.log to reduce noise.
Upgrade Notes
- From
v4.1.x
: Drop-in upgrade. - All other older nodes: Fresh sync or bootstrap from snapshots 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.
What's Changed
- Update build instructions for Windows by @Bushstar in #2916
- chore: fix typos by @fsgegs in #2915
- Add check for unspported db version by @Jouzo in #2912
- Bump h2 from 0.3.25 to 0.3.26 in /lib by @dependabot in #2882
- Bump rustls from 0.21.10 to 0.21.11 in /lib by @dependabot in #2901
- Remove StripRedundantLastElementsOfPath, DirIsWritable and GetUniquePath by @Bushstar in #2917
- Set Docker to use 24.04 by @Bushstar in #2920
- fix: add missing minter info to verbose 3+ outputs by @prasannavl in #2928
- Tone down rust logs by @Jouzo in #2930
- Avoid overflow when calculating using int64_t by @Bushstar in #2935
- EVM: Add tracer service and replay of EVM transactions by @sieniven in #2845
- EVM: Basic and custom tracer implementations by @sieniven in #2873
- EVM: Add caching on tracer service and block tracing pipeline by @sieniven in #2875
- Add -ports=auto option to auto set P2P, RPC, Eth RPC and Websocket ports by @Bushstar in #2927
- [breaking] Simplify UpdateTip log entry by @Bushstar in #2937
- EVM: Add debug_traceCall RPC by @sieniven in #2876
- [breaking] UpdateTip log line tweaks by @prasannavl in #2939
- EVM: Access list tracer by @sieniven in #2881
- Add state trie creation to overlay by @Jouzo in #2941
- v4.1.1 by @Bushstar in #2943
New Contributors
Full Changelog: v4.1.0...v4.1.1
v4.1.0
Mandatory Upgrade
Hard fork upgrade is set for block 4006000 (approx. ETA May 23, 2024. UTC) on mainnet.
Update of mainnet node to v4.1
before the chain upgrade block is REQUIRED.
Protocol Upgrades
- Make vault fee settable via Governance variables
- Enable renaming of token on DVM and EVM
- Enable renaming on pools
- Refund lost funds due to null pool swap bug
- Disable changing DAT flag
- Add support for merging or splitting token on EVM
- Add support for fractional merging or splitting of tokens
- Limit FutureSwap swappable amount based on average pool liquidity
Upgrade Notes
- From
v4.0.x
(except 4.0.6 and 4.0.7): Drop in-upgrade.- From
v4.0.8
: Drop-in upgrade. - From
v4.0.6
/v4.0.7
: Fresh sync or bootstrap from snapshot required, due to a bug with EVM logs indexer. - Other
v4.0.x
: Drop-in upgrade.
- From
- All other older nodes: Fresh sync or bootstrap from snapshots 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.
Network Snapshot
- [Asia] https://defi-snapshots.s3.ap-southeast-1.amazonaws.com/index.txt
- [EU] https://defi-snapshots-europe.s3.eu-central-1.amazonaws.com/index.txt
- [Sydney] https://defi-snapshots-sydney.s3.ap-southeast-2.amazonaws.com/index.txt
- [US] https://defi-snapshots-us.s3.amazonaws.com/index.txt
What's Changed
- Enable neutral votes in RPC by default by @Bushstar in #2818
- EVM: Refactor trace tx pipeline into executor by @sieniven in #2824
- getaccount accept valid scriptPubKey by @Bushstar in #2830
- EVM: Add support for access list creation for eth namespace RPC by @sieniven in #2827
- Add total emissions test tool by @Bushstar in #2847
- Add scriptPubKey support to getaddressinfo by @Bushstar in #2854
- EVM: Fix trace transaction state by @sieniven in #2841
- Make vault fee settable via Gov vars by @Bushstar in #2849
- Remove redundant -stop-block by @Bushstar in #2859
- Enable renaming of tokens on EVM by @Bushstar in #2821
- Fix clippy warnings by @Bushstar in #2860
- Refund null pool swaps by @Bushstar in #2822
- Fix compilation after merge by @Bushstar in #2863
- ain-dftx: Rust de/serialization of custom messages by @Jouzo in #2852
- Remove snapshot usage by @Bushstar in #2851
- Update pool symbol and name by @Bushstar in #2739
- Move RocksDB traits to dedicated package by @Jouzo in #2853
- CI: Add latest tag for built image in release workflow by @sieniven in #2867
- Disable changing of isDAT after DF23 fork by @Bushstar in #2866
- Support for fractional token migration by @Bushstar in #2204
- Run Jellyfish Tests in parallel by @canonbrother in #2865
- Remove Boost filesystem and system by @Bushstar in #2747
- Future Swap limitation by @Bushstar in #2843
- EVM: Storage versioning and migration by @Jouzo in #2681
- Support token split on EVM by @Bushstar in #2850
- Index EVM txs' block hash and index by @Jouzo in #2675
- Set DF23 Changi fork by @Bushstar in #2869
- chore: fix typos by @xiaoxianBoy in #2870
- Test update loan token after DF23 fork by @Bushstar in #2868
- Allow minting of loan tokens on mocknet by @Bushstar in #2877
- Remove RPC splits block by @Bushstar in #2878
- Fix miner token split creation TXs by @Bushstar in #2879
- EVM fractional split support for 64bit splits by @Bushstar in #2880
- Add logs for future swap limit calculation by @sieniven in #2871
- Set DF23 Testnet fork by @Bushstar in #2883
- Check future swap limitation block period more than sample period by @Bushstar in #2886
- Add checkpoints every 100k by @Bushstar in #2884
- Sort FS Limit samples by height by @Bushstar in #2891
- Prevent empty token name in RPC by @Bushstar in #2887
- CI: Fix release workflow by @sieniven in #2893
- Remove view snapshot from RPC call by @Bushstar in #2896
- Pin eth_account to 0.11.2 by @Bushstar in #2899
- Future Swap avoid division by zero by @Bushstar in #2902
- Fix setgov test failure by @Jouzo in #2906
- Add limit and remaining to listloantokenliquidity by @Bushstar in #2897
- Allow updating of DAT tokens by @Bushstar in #2904
- EVM: Add support for token split via DST20 v2 contract by @Jouzo in #2903
- Pin eth_typing to v4.0.0 by @Bushstar in #2910
- EVM: DST20 v2 burn of sent amount by @Jouzo in #2911
- Set tentative mainnet DF23 fork height by @Bushstar in #2908
New Contributors
- @xiaoxianBoy made their first contribution in #2870
Full Changelog: v4.0.9...v4.1.0
v4.0.9
Optional Upgrade
Updates
- Enable passing null value in topic list
- Fix estimate gas RPC
- Fix eth subscription notifications
Upgrade Notes
- From v4.0.6/v4.0.7: if EVM logs used then
-reindex
, fresh sync or bootstrap from snapshot required. - From all other v4.0.x versions: drop in-upgrade.
- Older nodes, require a fresh sync or bootstrap from snapshots.
- From pre-releases (v4-rc, v4-beta, etc):
-reindex
, fresh sync or bootstrap from snapshot 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.
defid
now requiresglibc
2.29 or greater to run. You may need to update your OS if you are running an older version. (Ubuntu 18, Debian 10, etc.)
Network Snapshot
- [Asia] https://defi-snapshots.s3.ap-southeast-1.amazonaws.com/index.txt
- [EU] https://defi-snapshots-europe.s3.eu-central-1.amazonaws.com/index.txt
- [Sydney] https://defi-snapshots-sydney.s3.ap-southeast-2.amazonaws.com/index.txt
- [US] https://defi-snapshots-us.s3.amazonaws.com/index.txt
What's Changed
- RPC: Fix de-serializing null values in topic lists by @sieniven in #2807
- RPC: Fix state override support in estimate gas by @sieniven in #2806
- Check address supplied to getaccount is valid by @Bushstar in #2798
- RPC: Fix estimate gas RPC by @sieniven in #2808
- RPC: Enable passing null value in topic list in subscriptions RPC by @sieniven in #2810
- RPC: Fix eth subscription notifications by @sieniven in #2812
- v4.0.9 by @Bushstar in #2809
Full Changelog: v4.0.8...v4.0.9