You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cummulative update from PR #5026: feat: add implementation of DIP 0027 Credit Asset Locks
This commit includes:
- Asset Lock transaction
- Asset Unlock transaction (withdrawal)
- Credit Pool in coinbase
- Unit tests for Asset Lock/Unlock tx
- New functional test `feature_asset_locks.py`
- RPC for Credit Pool (currently locked amount)
- Asset unlock limits are equals to: min(max(100, min(.10 * assetlockpool, 1000)), assetlockpool)
- Removing expired asset-unlock transaction from mempool
- Asset unlock transaction are restricted to be accepted during only 48 blocks
feat: improve improved funtional test feature_asset_locks.py to test more
- rollback of block with tx Asset Lock
- rollback of block with tx Asset Unlock
- duplicate 'asset unlock' tx for new block
- asset unlock rollback and reconsider
- reconsider/invalide blocks
- manually created block with invalid transaction
feat: proper implementation of CCreditPoolManager with credits and index validation
This commit implements:
- an index validation for asset-unlock txes
- refactoring of CCreditPoolManager
- serializing CreditPoolCb to evo db when needed
- unlock transactions are validated twice: when accepting to block chain and in miner
- indexes also validated before beeing added to txmempool
- functional test with duplicated indexes in Asset Unlock txes
feat: add unittests for SkipSet structure
fix: check validity of asset-locked amount in coin base tx for new block
0 commit comments