monero/src/wallet
moneromooo-monero fde7c96b5c
wallet2: fix spurious reorg detection with untrusted nodes
When forced to deal with an untrusted node, a wallet will quantize
its current height to disguise the real height to the adversary, to
try and minimize the daemon's ability to distinguish returning
wallets.
Daemons will thus return more blocks than the wallet needs, starting
from earlier in the chain. These extra blocks will be disregarded
by the wallet, which had already scanned them.
However, for the purposes of reorg size detection, the wallet assumes
all blocks the daemon sends are different, which is only correct if
the wallet hasn't been coy, which is only the case for trusted
daemons (which you should use). This causes an issue when the size
of this "fake reorg" is above the sanity check threshold at which
the wallet refuses a reorg.
To fix this, the reorg size check is moved later on, when the reorg
is about to actually happen, after the wallet has checked which
blocks are actually different from the ones it expects.
2022-05-15 11:57:37 +00:00
..
api Merge pull request #8249 2022-04-25 10:20:10 -05:00
CMakeLists.txt Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
message_store.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
message_store.h Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
message_transporter.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
message_transporter.h Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
node_rpc_proxy.cpp Fee changes from ArticMine 2022-04-10 18:13:34 +00:00
node_rpc_proxy.h Fee changes from ArticMine 2022-04-10 18:13:34 +00:00
ringdb.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
ringdb.h Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
wallet2.cpp wallet2: fix spurious reorg detection with untrusted nodes 2022-05-15 11:57:37 +00:00
wallet2.h Add view tags to outputs to reduce wallet scanning time 2022-04-18 00:49:53 -07:00
wallet_args.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
wallet_args.h Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
wallet_errors.h Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
wallet_light_rpc.h Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
wallet_rpc_helpers.h Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
wallet_rpc_payments.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
wallet_rpc_server_commands_defs.h Merge pull request #8215 2022-04-06 00:16:20 -04:00
wallet_rpc_server_error_codes.h Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
wallet_rpc_server.cpp Merge pull request #8220 2022-05-10 16:41:02 -05:00
wallet_rpc_server.h Copyright: Update to 2022 2022-03-04 06:59:20 +01:00