oxen-core/src/cryptonote_core
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 Batching of service node rewards 2022-04-29 09:51:14 +10:00
blockchain.cpp Batching of service node rewards 2022-04-29 09:51:14 +10:00
blockchain.h Batching of service node rewards 2022-04-29 09:51:14 +10:00
cryptonote_core.cpp Batching of service node rewards 2022-04-29 09:51:14 +10:00
cryptonote_core.h Batching of service node rewards 2022-04-29 09:51:14 +10:00
cryptonote_tx_utils.cpp Batching of service node rewards 2022-04-29 09:51:14 +10:00
cryptonote_tx_utils.h Batching of service node rewards 2022-04-29 09:51:14 +10:00
oxen_name_system.cpp Silence clang warning 2022-04-14 14:34:50 -03:00
oxen_name_system.h Update oxenmq to latest oxen-mq+oxen-encoding 2022-04-14 14:32:01 -03:00
pulse.cpp Update oxenmq to latest oxen-mq+oxen-encoding 2022-04-14 14:32:01 -03:00
pulse.h Pulse: Use the latest round when querying quorums via rpc 2020-10-12 11:42:54 +11:00
service_node_list.cpp Batching of service node rewards 2022-04-29 09:51:14 +10:00
service_node_list.h Batching of service node rewards 2022-04-29 09:51:14 +10:00
service_node_quorum_cop.cpp Delay checkpoints by a block 2022-04-17 12:59:36 -03:00
service_node_quorum_cop.h Add lokinet reachability to quorum testing 2021-06-10 12:13:33 -03:00
service_node_rules.cpp Add snode revision soft forks & drop hard fork voting code 2021-06-19 15:13:57 -03:00
service_node_rules.h Batching of service node rewards 2022-04-29 09:51:14 +10:00
service_node_swarm.cpp Don't sort an already-sorted vector 2021-04-19 00:14:47 -03:00
service_node_swarm.h Fix get_new_swarm_id() returning MAX_ID/2 when single swarm 2021-04-18 23:47:22 -03:00
service_node_voting.cpp Drop integration test code. 2021-08-19 16:42:15 -03:00
service_node_voting.h reason bitmask 2021-03-26 15:25:12 -03:00
tx_blink.cpp Work around clang/libc++ compiler crash 2020-06-09 23:06:54 -03:00
tx_blink.h Target macos 10.12 2020-10-18 11:18:08 -03:00
tx_pool.cpp Batching of service node rewards 2022-04-29 09:51:14 +10:00
tx_pool.h Remove obsolete (pre-HF18) code paths 2021-06-10 12:13:33 -03:00
tx_sanity_check.cpp More epee purging 2022-04-15 13:51:57 -03:00
tx_sanity_check.h wallet: reroll fake outs selection on local tx_sanity_check failure 2020-01-14 22:56:23 +00:00
uptime_proof.cpp Update oxenmq to latest oxen-mq+oxen-encoding 2022-04-14 14:32:01 -03:00
uptime_proof.h Update oxenmq to latest oxen-mq+oxen-encoding 2022-04-14 14:32:01 -03:00