oxen-core/tests/performance_tests
Sean Darcy 866691d9d8 Batching of service node rewards
This updates the coinbase transactions to reward service nodes
periodically rather than every block. If you recieve a service node
reward this reward will be delayed x blocks, if you receive another
reward to the same wallet before those blocks have been completed it
will be added to your total and all will be paid out after those x
blocks has passed.

For example if our batching interval is 2 blocks:

Block 1 - Address A receives reward of 10 oxen - added to batch
Block 2 - Address A receives reward of 10 oxen - added to batch
Block 3 - Address A is paid out 20 oxen.

Batching accumulates a small reward for all nodes every block

The batching of service node rewards allows us to drip feed rewards
to service nodes. Rather than accruing each service node 16.5 oxen every
time they are pulse block leader we now reward every node the 16.5 /
num_service_nodes every block and pay each wallet the full amount that
has been accrued after a period of time (Likely 3.5 days).

To spread each payment evenly we now pay the rewards based on the
address of the recipient. This modulus of their address determines which
block the address should be paid and by setting the interval to our
service_node_batching interval we can guarantee they will be paid out
regularly and evenly distribute the payments for all wallets over this
2022-04-29 09:51:14 +10:00
..
CMakeLists.txt Move test suite timings code out of main src 2020-10-24 12:46:26 -03:00
bulletproof.h Update 2019 copyright 2019-03-05 22:05:34 +01:00
check_tx_signature.h compiles 2021-01-04 13:09:59 +11:00
cn_fast_hash.h Update 2019 copyright 2019-03-05 22:05:34 +01:00
cn_slow_hash.h Remove deprecated epee code 2020-10-24 12:46:26 -03:00
construct_tx.h compiles 2021-01-04 13:09:59 +11:00
crypto_ops.h CLSAG signatures 2020-09-16 20:41:39 -03:00
derive_public_key.h Update 2019 copyright 2019-03-05 22:05:34 +01:00
derive_secret_key.h Update 2019 copyright 2019-03-05 22:05:34 +01:00
equality.h Update 2019 copyright 2019-03-05 22:05:34 +01:00
ge_frombytes_vartime.h Target macos 10.12 2020-10-18 11:18:08 -03:00
ge_tobytes.h Target macos 10.12 2020-10-18 11:18:08 -03:00
generate_key_derivation.h Update 2019 copyright 2019-03-05 22:05:34 +01:00
generate_key_image.h Update 2019 copyright 2019-03-05 22:05:34 +01:00
generate_key_image_helper.h Target macos 10.12 2020-10-18 11:18:08 -03:00
generate_keypair.h Replace `keypair::generate` with a `keypair` constructor taking a hwdev 2020-12-08 22:31:54 -04:00
is_out_to_acc.h Target macos 10.12 2020-10-18 11:18:08 -03:00
main.cpp Remove Borromean generation 2020-11-30 00:47:12 -04:00
multi_tx_test_base.h Batching of service node rewards 2022-04-29 09:51:14 +10:00
multiexp.h multiexp: handle pippenger multiexps with part precalc 2018-10-22 16:07:44 +00:00
performance_tests.h More epee purging 2022-04-15 13:51:57 -03:00
performance_utils.h Merge commit 'c3de019f565674fd19b9d5cafba015d9ea7f69f7' into LokiMergeUpstream 2019-04-12 15:10:33 +10:00
sc_check.h performance_tests: sc_check and ge_dsm_precomp 2018-10-22 16:07:44 +00:00
sc_reduce32.h Update 2019 copyright 2019-03-05 22:05:34 +01:00
sig_clsag.h Added balance check to MLSAG/CLSAG performance tests 2020-09-16 20:43:12 -03:00
signature.h Replace `keypair::generate` with a `keypair` constructor taking a hwdev 2020-12-08 22:31:54 -04:00
single_tx_test_base.h Batching of service node rewards 2022-04-29 09:51:14 +10:00
subaddress_expand.h Update 2019 copyright 2019-03-05 22:05:34 +01:00
timings.cc Move epee includes under "epee/..." 2020-10-24 12:46:27 -03:00
timings.h Move test suite timings code out of main src 2020-10-24 12:46:26 -03:00