Skip to content

Commit 31eb905

Browse files
committed
rpc: remove rebase artifact of block_ids_skip_common_block
1 parent 321f286 commit 31eb905

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

src/rpc/core_rpc_server_commands_defs.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ inline const std::string get_rpc_status(const bool trusted_daemon, const std::st
195195
uint64_t pool_info_since;
196196
uint64_t max_block_count;
197197
bool init_tree_sync;
198-
bool block_ids_skip_common_block;
199198
BEGIN_KV_SERIALIZE_MAP()
200199
KV_SERIALIZE_PARENT(rpc_access_request_base)
201200
KV_SERIALIZE_OPT(requested_info, (uint8_t)0)
@@ -207,7 +206,6 @@ inline const std::string get_rpc_status(const bool trusted_daemon, const std::st
207206
KV_SERIALIZE_OPT(pool_info_since, (uint64_t)0)
208207
KV_SERIALIZE_OPT(max_block_count, (uint64_t)0)
209208
KV_SERIALIZE_OPT(init_tree_sync, false)
210-
KV_SERIALIZE_OPT(block_ids_skip_common_block, false)
211209
END_KV_SERIALIZE_MAP()
212210
};
213211
typedef epee::misc_utils::struct_init<request_t> request;

src/wallet/wallet2.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3094,7 +3094,7 @@ void wallet2::pull_blocks(bool check_pool, uint64_t &blocks_start_height, const
30943094
cryptonote::COMMAND_RPC_GET_BLOCKS_FAST::request req = AUTO_VAL_INIT(req);
30953095
cryptonote::COMMAND_RPC_GET_BLOCKS_FAST::response res = AUTO_VAL_INIT(res);
30963096
req.block_ids = short_chain_history;
3097-
req.block_ids_skip_common_block = true; // start with the first new block after highest common block
3097+
req.block_ids_exclusive = true; // start with the first new block after highest common block
30983098
req.prune = true;
30993099
req.no_miner_tx = false; // always need the miner tx so we can grow the tree correctly
31003100
req.init_tree_sync = m_tree_cache.n_synced_blocks() == 0;
@@ -3250,7 +3250,7 @@ static uint64_t check_for_reorg(const uint64_t parsed_blocks_start_idx, const cr
32503250

32513251
// Note: this section assumes the wallet used its latest short_chain_history in the getblocks.bin request.
32523252
// The daemon response should always include at least 1 block with prev_id included in our local chain
3253-
// (see block_ids_skip_common_block param). If there was a reorg, then the daemon resp includes a block w/prev_id in
3253+
// (see block_ids_exclusive param). If there was a reorg, then the daemon resp includes a block w/prev_id in
32543254
// our local chain that is contiguous to the main chain, and also returns contiguous blocks after. It's possible the
32553255
// resp includes multiple blocks we have already synced, since short_chain_history has gaps in it. If
32563256
// parsed_blocks_start_idx-1 is not in our hashchain, however, then the reorg must have occurred earlier than the

0 commit comments

Comments
 (0)