From b4e3fd490b41ab685e3d3036679ff8b7b87899d6 Mon Sep 17 00:00:00 2001 From: Daniel Connolly Date: Thu, 23 May 2024 12:39:37 +0000 Subject: [PATCH] add notes about issue --- json/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/json/src/lib.rs b/json/src/lib.rs index 9bdce158..585506e9 100644 --- a/json/src/lib.rs +++ b/json/src/lib.rs @@ -262,6 +262,7 @@ pub struct GetBlockResult { pub chain_work: Vec, #[serde(rename = "previousblockhash")] pub previous_block_hash: Option, + // todo: isnt this a problem? couldn't there be multiple next blocks in the case of a fork? #[serde(rename = "nextblockhash")] pub next_block_hash: Option, pub status: GetBlockResultStatus, @@ -337,6 +338,7 @@ pub struct GetBlockHeaderResult { pub chainwork: Vec, #[serde(rename = "previousblockhash")] pub previous_block_hash: Option, + // todo: is this a problem? won't it return multiple hashe's if there is a fork? #[serde(rename = "nextblockhash")] pub next_block_hash: Option, pub status: GetBlockResultStatus,