aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/span.h
diff options
context:
space:
mode:
authorj-berman <justinberman@protonmail.com>2022-12-13 16:08:56 -0800
committerrbrunner7 <rbrunner@dreamshare.ch>2023-03-07 20:35:45 +0100
commitc4af33ededc8ca2394969f1bd8a1ea1cc5da160b (patch)
tree3bef1b3cae1df5deebc6542eaef4a26ce02ad4a2 /contrib/epee/include/span.h
parentwallet2, RPC: Optimize RPC calls for periodic refresh from 3 down to 1 call (diff)
downloadmonero-c4af33ededc8ca2394969f1bd8a1ea1cc5da160b.tar.xz
Enforce restricted # pool txs served via RPC + optimize chunked reqs
- `/getblocks.bin` respects the `RESTRICTED_TX_COUNT` (=100) when returning pool txs via a restricted RPC daemon. - A restricted RPC daemon includes a max of `RESTRICTED_TX_COUNT` txs in the `added_pool_txs` field, and returns any remaining pool hashes in the `remaining_added_pool_txids` field. The client then requests the remaining txs via `/gettransactions` in chunks. - `/gettransactions` no longer does expensive no-ops for ALL pool txs if the client requests a subset of pool txs. Instead it searches for the txs the client explicitly requests. - Reset `m_pool_info_query_time` when a user: (1) rescans the chain (so the wallet re-requests the whole pool) (2) changes the daemon their wallets points to (a new daemon would have a different view of the pool) - `/getblocks.bin` respects the `req.prune` field when returning pool txs. - Pool extension fields in response to `/getblocks.bin` are optional with default 0'd values.
Diffstat (limited to 'contrib/epee/include/span.h')
0 files changed, 0 insertions, 0 deletions