asch
asch copied to clipboard
/api/v2/blocks?limit=2 returns 1 block at MAINNET and 2 blocks at LOCALNET
MAINNET
When I query the following endpoint https://wallet.asch.io/api/v2/blocks?limit=2 I get the following result:
{
"success":true,
"count":6276641,
"blocks": [{
"id":"14835864848871200194",
"delegate":"5E626027B53D3226714090F1A3531A4D353919C3DC99B4ECB587CE8D390D6342",
"height":1,
"timestamp":0,
"payloadHash":"44097D5B27112B64F4ED0B472861B4FC32F0BFAEC41D73E0C027770F6A500CA1",
"count":217,
"fees":0,
"reward":0,
"prevBlockId":null,
"version":1
}]
}
LOCALNET
When I query the following localnet endpoint http://localhost:4096/api/v2/blocks?limit=2 I get the following result:
{
"success": true,
"count": 74,
"blocks": [{
"version": 0,
"payloadHash": "275d2b8f2c9cae345d535e76a0922d5ccca6668ab8d007135f0aa8a780b52896",
"timestamp": 0,
"delegate": "dcb28a3789c748b62aac1dfff81178d203aabdfd0516c547d5ce6c986d26b4fa",
"height": 0,
"count": 203,
"fees": 0,
"reward": 0,
"signature": "67254c9b69224e8d2269ca28af5e434fbfee47e6fd4b819e9c053b00af04da3664e17ec337a9b60fc5fc91f66b93743cd926d79c00fa367e55136cfb2933b007",
"id": "148da01c074085898c36c8fc65f78379741f2d7a9f60692a989a1c154d65f5e3"
}, {
"version": 0,
"delegate": "a91027dd72c54c8002bcbf19de4d837919c24857efeb288c5ccb858b75512219",
"height": 1,
"prevBlockId": "148da01c074085898c36c8fc65f78379741f2d7a9f60692a989a1c154d65f5e3",
"timestamp": 67952720,
"count": 0,
"fees": 0,
"payloadHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"reward": 350000000,
"signature": "fcfacd0c373124831b4565358d1ca514a7eca5802e383387ee8a81b0a49289b9e4a35ddc67cae8562b57ba16c9932f6300e3ee4c2a321daa036b7a0074596e04",
"id": "7e2384207f3c9ce2070ab6d810d14e728bd4be6262e87591186b6fba00f805d7"
}]
}
THOUGHTS
The problem could be, that the MAINNET is starting with block height height:1 and the LOCALNET is starting with block height height:0