oxen-core/src/wallet/api
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
..
address_book.cpp Add locks around the refresh thread 2021-07-07 11:05:17 -03:00
address_book.h Remove deprecated wallet api functions 2020-10-24 12:46:26 -03:00
CMakeLists.txt Batching of service node rewards 2022-04-29 09:51:14 +10:00
common_defines.h Export symbols and strip debug symbols from android static lib 2021-01-08 18:15:25 -04:00
pending_transaction.cpp Update oxenmq to latest oxen-mq+oxen-encoding 2022-04-14 14:32:01 -03:00
pending_transaction.h Merge pull request #1371 from jagerman/stake-unlock-compilation-fixes 2020-12-18 01:46:42 -04:00
stake_unlock_result.cpp Export symbols and strip debug symbols from android static lib 2021-01-08 18:15:25 -04:00
stake_unlock_result.h Fix StakeUnlockResult non-virtual destructor 2022-04-18 15:06:38 -03:00
subaddress.cpp Add locks around the refresh thread 2021-07-07 11:05:17 -03:00
subaddress.h Rename wallet api namespace Monero:: -> Wallet:: 2020-10-24 12:46:26 -03:00
subaddress_account.cpp Add locks around the refresh thread 2021-07-07 11:05:17 -03:00
subaddress_account.h Rename wallet api namespace Monero:: -> Wallet:: 2020-10-24 12:46:26 -03:00
transaction_history.cpp Add is-stake to wallet api 2022-04-18 11:18:12 -03:00
transaction_history.h wallet_api: unexpose fs:: in api; remove more deprecations; clean dirt 2020-11-04 12:11:20 -04:00
transaction_info.cpp Add is-stake to wallet api 2022-04-18 11:18:12 -03:00
transaction_info.h Add is-stake to wallet api 2022-04-18 11:18:12 -03:00
unsigned_transaction.cpp Add locks around the refresh thread 2021-07-07 11:05:17 -03:00
unsigned_transaction.h wallet_api: unexpose fs:: in api; remove more deprecations; clean dirt 2020-11-04 12:11:20 -04:00
utils.cpp Export symbols and strip debug symbols from android static lib 2021-01-08 18:15:25 -04:00
wallet.cpp Include SN status info info list_current_stakes() 2022-04-21 18:27:45 -03:00
wallet.h Include SN status info info list_current_stakes() 2022-04-21 18:27:45 -03:00
wallet2_api.h Include SN status info info list_current_stakes() 2022-04-21 18:27:45 -03:00
wallet_manager.cpp Remove openssl, unbound, expat, OpenAlias 2022-04-15 13:51:57 -03:00
wallet_manager.h Remove openssl, unbound, expat, OpenAlias 2022-04-15 13:51:57 -03:00