oxen-core/src/cryptonote_basic
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
..
account.cpp executable names changed 2021-01-04 14:19:42 +11:00
account.h Test suite fixes 2021-07-05 23:48:18 -03:00
account_boost_serialization.h Update monero copyright to 2019 pre-emptively to make merge simpler 2019-04-12 14:36:43 +10:00
blobdatatype.h Move epee includes under "epee/..." 2020-10-24 12:46:27 -03:00
CMakeLists.txt De-inline cryptonote_basic 2020-12-08 22:28:37 -04:00
connection_context.h Move epee includes under "epee/..." 2020-10-24 12:46:27 -03:00
cryptonote_basic.cpp Batching of service node rewards 2022-04-29 09:51:14 +10:00
cryptonote_basic.h Batching of service node rewards 2022-04-29 09:51:14 +10:00
cryptonote_basic_impl.cpp Batching of service node rewards 2022-04-29 09:51:14 +10:00
cryptonote_basic_impl.h Batching of service node rewards 2022-04-29 09:51:14 +10:00
cryptonote_boost_serialization.h Batching of service node rewards 2022-04-29 09:51:14 +10:00
cryptonote_format_utils.cpp Batching of service node rewards 2022-04-29 09:51:14 +10:00
cryptonote_format_utils.h Remove unused decimal point arg; add format_money() 2022-04-15 17:54:03 -03:00
difficulty.cpp Add snode revision soft forks & drop hard fork voting code 2021-06-19 15:13:57 -03:00
difficulty.h Add snode revision soft forks & drop hard fork voting code 2021-06-19 15:13:57 -03:00
hardfork.cpp Batching of service node rewards 2022-04-29 09:51:14 +10:00
hardfork.h Fix copyright statement 2021-06-21 09:50:57 -03:00
miner.cpp More epee purging 2022-04-15 13:51:57 -03:00
miner.h std::filesystem 2020-10-24 12:45:37 -03:00
subaddress_index.h executable names changed 2021-01-04 14:19:42 +11:00
tx_extra.cpp Add lokinet reachability to quorum testing 2021-06-10 12:13:33 -03:00
tx_extra.h Add lokinet reachability to quorum testing 2021-06-10 12:13:33 -03:00
txtypes.h initial loki -> oxen pass 2021-01-04 11:09:45 +11:00
verification_context.h Move epee includes under "epee/..." 2020-10-24 12:46:27 -03:00