Implement batch block transfer with server side ancestor fill, BLOCK_BATCH_MAX_COUNT reduced from 50 to 10 to avoid contention warnings, fix get_seed failure in add_external_block returning false

This commit is contained in:
Matt Hess
2026-02-19 20:30:23 +00:00
parent 867047f897
commit 76d1efcf57
4 changed files with 92 additions and 18 deletions

View File

@@ -81,7 +81,7 @@ public:
bool get_genesis_info(hash& id, uint64_t& timestamp, uint64_t& height) const;
void purge_sidechain();
[[nodiscard]] const PoolBlock* get_block_blob(const hash& id, std::vector<uint8_t>& blob) const;
[[nodiscard]] const PoolBlock* get_block_blob(const hash& id, std::vector<uint8_t>& blob, hash* parent_hash_out = nullptr) const;
[[nodiscard]] bool get_outputs_blob(PoolBlock* block, uint64_t total_reward, std::vector<uint8_t>& blob, uv_loop_t* loop) const;
void print_status(bool obtain_sidechain_lock = true) const;