Skip to content

Commit

Permalink
add notes about issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Danconnolly committed May 23, 2024
1 parent 0a003b5 commit b4e3fd4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions json/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ pub struct GetBlockResult {
pub chain_work: Vec<u8>,
#[serde(rename = "previousblockhash")]
pub previous_block_hash: Option<BlockHash>,
// 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<BlockHash>,
pub status: GetBlockResultStatus,
Expand Down Expand Up @@ -337,6 +338,7 @@ pub struct GetBlockHeaderResult {
pub chainwork: Vec<u8>,
#[serde(rename = "previousblockhash")]
pub previous_block_hash: Option<BlockHash>,
// 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<BlockHash>,
pub status: GetBlockResultStatus,
Expand Down

0 comments on commit b4e3fd4

Please sign in to comment.