We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e2aa59 commit 5dcbe96Copy full SHA for 5dcbe96
api/src/handlers/blocks_api.rs
@@ -152,11 +152,18 @@ impl BlockHandler {
152
max = BLOCK_TRANSFER_LIMIT;
153
}
154
let tail_height = self.get_tail_height()?;
155
+ let orig_start_height = start_height;
156
157
if start_height < tail_height {
158
start_height = tail_height;
159
160
161
+ // In full archive node, tail will be set to 1, so include genesis block as well
162
+ // for consistency
163
+ if start_height == 1 && orig_start_height == 0 {
164
+ start_height = 0;
165
+ }
166
+
167
let mut result_set = BlockListing {
168
last_retrieved_height: 0,
169
blocks: vec![],
0 commit comments