r/Aeon • aeon contributor • Mar 20 '18

Initial code for rebase finalization

https://github.com/aeonix/aeon-rebase/pull/4#issuecomment-374611047

Basically I've finished the initial task of removing unwanted/undecided consensus changes from the original Monero codebase. Specifically, the following have been removed:

  • Dynamic per-kb fees: PR-1276

    • In commit Principal changes

  • Activation of RingCT: PR-961

    • In commit Disable RingCT by #defining HF_VERSION_ALLOW_RCT 255 which replaces hf_version 4

  • Enforcement of RingCT & minimum mixin 4: PR-1869

    • In commit Remove enforce rct

    • In commit Remove minimum mixin 4

  • Per-kb fees: PR-184 EDIT: Will be kept following smooth's suggestion.

    • In commit Deactivate per-kb fee

  • Increase of penalty-free full reward zone: PR-490 & PR-1869

    • In commit Remove CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE_V2

  • Input sorting: PR-2440 EDIT: Will be kept

    • In commit blockchain: remove sorted ins

On the other hand, there are quite some consensus changes in Monero that seem harmless and even beneficial to Aeon IMO, which I didn't bother removing:

  • PR-410

    • blockchain: on hardfork 2, allow miners to claim less money than allowed

  • PR-425

    • from hard fork 2, claim a quantized reward in coinbase

    • from hard fork 2, all outputs must be decomposed

  • PR-763

    • core: fix miner tx block reward with fees

    • blockchain: for v3, require miner tx to have well behaved outs

  • PR-1386

    • blockchain: reject invalid pubkeys from v4

  • PR-1902

    • tx_pool: use new filling algorithm from v5 only

  • PR-2188

    • core: forbid duplicate ring members from v6

  • PR-2269

    • protocol: add checks for top block hard fork version

  • EDIT: PR-2440

    • blockchain: reject unsorted ins and outs from v7

I hope the community can also agree with these changes.

Regarding the minimum ring size and the limited use of non-private (i.e. ringsize=1) txes, the new rules are implemented in commit Allow 10% of txs in a block to be of ringsize 1

  • Transactions with ring size 2 are basically prohibited.

  • Normal transactions should have at least ring size 3.

  • Non-private (ringsize=1) transactions are allowed, but to a limited degree: a block containing N non-coinbase transactions can contain M non-private transactions as long as 10*(M-1) doesn't exceed N.

Last but not least, the same POW change (variant 1) from Monero is applied to Aeon's CryptoNight-Lite. To ease the adoption (particularly for 3rd-party miners and pools), it's decided to bump the fork version from v1 to v7 at once (instead of v2 as usual).

The testnet height for v7 fork is set to 44000 (24 March 2018). A lot of reviewing and testing are highly desired before the official release.

60 Upvotes

68 comments sorted by

View all comments

5

u/poorly_timed_leg0las pool operator Mar 20 '18

Anyone able to comment on changes needed to pools? Not sure if anyone knows the changes yet

3

u/elytscha Mar 20 '18

pools just need to update their running aeon daemon and their wallet as far as i know

+ miners need to update their miner

3

u/poorly_timed_leg0las pool operator Mar 20 '18 edited Mar 20 '18

But arent POW changes being implemented with rebase so pools will have to update algorithm also otherwise hashes will be rejected by the pool as its checking for v1 crypto light when we've/miners moved to v2

0

u/[deleted] Mar 20 '18

[deleted]

1

u/poorly_timed_leg0las pool operator Mar 20 '18 edited Mar 20 '18

No I hadn't thanks for sharing, I am wondering what the Aeon equivalent is for https://github.com/Venthos/nodejs-pool/commit/c42c80819bbfeccfc304da4f8b5529131e88e1d0#diff-d1f20eb6706ccb31b4ef7371872ef6e9

Or will this work with the light version?

Right now that line is "this.cryptoNight = multiHashing.cryptonight_light;"

Their multi-hashing changes dont contain a cryptonight_light.c/cryptonight_light.h

2

u/SemiPool Mar 20 '18

If you use nodejs-pool, you can update Venthos repo for pools (it is for both XMR v7 and AEON v7). However, it’s still in testing for v7.