We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e78dc0 commit e2d72a9Copy full SHA for e2d72a9
1 file changed
src/Blockcore/Consensus/Chain/ChainIndexer.cs
@@ -221,6 +221,12 @@ public virtual ChainedHeader GetHeader(uint256 id)
221
{
222
lock (this.lockObject)
223
224
+ // If node is looking for zero, we'll return the genesis block.
225
+ if (id == uint256.Zero)
226
+ {
227
+ return this.blocksByHeight[0];
228
+ }
229
+
230
ChainedHeader result;
231
this.blocksById.TryGetValue(id, out result);
232
return result;
0 commit comments