Skip to content

Avalon v1.5.1

Compare
Choose a tag to compare
@techcoderx techcoderx released this 04 Dec 04:12
· 177 commits to master since this release

Non-consensus update containing bug fixes and improvements. Recommended for public API nodes.

API changes

Content filtering (#66, #76)

Additional options has been added to /new, /hot, /trending, /content, /feed and /blog methods to allow filtering with tags, usernames, limits and timestamps. For more info on usage details, please see PR #87 and #92.

Leader age info (#90)

LEADER_STATS module now records the block number and timestamp of each leaders' first block mined so that such info may be retrieved with /rank/leaders and /leader/:account. Useful for determining leader age and starting point in the blockchain in which a leader starts producing blocks.

Bug fixes

API error handling (#83)

Fixed /feed/:username/:author/:link and /history error handling that caused Avalon to crashed when not handled properly.

Negative claimable reward failsafe

A negative claimable reward is caused by either precision errors with 100% author tips or when the gross curation payout decreases due to opposite votes made thereafter such that it is lower than totalTip when the author vote is claimed, resulting in a reward debt. The fix would set all claimable rewards to 0 if gross - totalTip is negative as any attempt to claim rewards less than 0.01 DTUBE will fail.

Reindexing

A rebuild is only required for nodes with LEADER_STATS module enabled or to resolve negative claimable rewards in existing state. Claimable rewards on all votes for a content re-compute on new incoming votes hence it will not cause any inconsistency issues with reward payouts.