-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Requesting the genesis block from a Jörmungandr self-node spawned from the master branch
Git commit 17f43288b8ebf8eb80da7a8f9169701eafcb9c70
axios.get(`/api/v0/block/${block_id}`, {
responseType: 'arraybuffer',
headers: {
'Content-Type': 'application/octet-stream'
}
})
Block.from_bytes(buffer)
Failed: "NotEnoughBytes: demanded 1 bytes but got 0"
The response has data, represented as a string:
0,82,0,0,0,0,1,219,0,0,0,0,0,0,0,0,0,0,0,0,222,221,115,111,74,163,75,232,225,105,79,209,155,198,48,114,174,134,42,128,178,74,165,199,57,152,64,72,9,70,199,174,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,121,0,0,11,0,136,0,0,0,0,93,119,36,15,0,65,2,0,194,0,2,3,152,0,0,0,0,0,0,0,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,4,0,0,19,136,1,65,10,4,4,0,0,168,192,2,8,0,0,0,0,0,0,0,100,2,136,0,0,0,0,0,0,0,0,1,132,0,0,0,10,2,224,232,71,243,35,41,21,236,82,108,64,217,101,219,27,160,149,196,158,151,68,150,115,103,142,156,73,123,211,248,109,211,161,0,85,2,0,2,133,217,69,29,209,200,104,191,62,143,167,48,38,139,182,126,100,102,71,15,63,5,113,191,105,213,128,41,197,229,158,209,6,0,0,0,232,212,165,16,0,133,232,154,51,201,220,148,170,49,121,12,59,35,171,197,139,140,144,31,114,234,95,114,71,88,178,11,31,212,237,147,69,181,0,0,0,232,212,165,16,0,0,125,5,0,0,0,0,0,0,0,0,0,0,0,0,60,52,235,18,0,0,0,0,0,0,0,0,1,1,232,71,243,35,41,21,236,82,108,64,217,101,219,27,160,149,196,158,151,68,150,115,103,142,156,73,123,211,248,109,211,161,24,182,202,38,4,38,71,128,148,231,249,36,114,35,229,48,0,147,180,22,135,120,106,239,41,194,78,199,202,63,99,17,246,77,182,228,177,143,126,42,3,166,97,23,215,203,70,71,159,5,120,20,21,237,68,61,174,6,122,180,87,246,233,107,0,0,0,67,4,217,69,29,209,200,104,191,62,143,167,48,38,139,182,126,100,102,71,15,63,5,113,191,105,213,128,41,197,229,158,209,6,38,95,11,169,101,92,153,74,33,181,92,188,219,213,171,54,154,69,249,55,216,128,1,1,216,108,50,194,114,179,116,241,0,0,0,67,4,232,154,51,201,220,148,170,49,121,12,59,35,171,197,139,140,144,31,114,234,95,114,71,88,178,11,31,212,237,147,69,181,38,95,11,169,101,92,153,74,33,181,92,188,219,213,171,54,154,69,249,55,216,128,1,1,216,108,50,194,114,179,116,241,0,0
Other blocks are decoded as expected
Metadata
Metadata
Assignees
Labels
No labels