mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-08-05 22:44:50 +02:00
Bugfix: RPC/Blockchain: Correct getblocklocations return type
(array of objects, not array with named keys)
This commit is contained in:
parent
63389a52a4
commit
d71a059198
@ -2883,10 +2883,13 @@ static RPCHelpMan getblocklocations()
|
||||
RPCResult{
|
||||
RPCResult::Type::ARR, "", "",
|
||||
{
|
||||
{RPCResult::Type::NUM, "file", "blk*.dat/rev*.dat file index"},
|
||||
{RPCResult::Type::NUM, "data", "block data file offset"},
|
||||
{RPCResult::Type::NUM, "undo", "undo data file offset (if exists)"},
|
||||
{RPCResult::Type::STR_HEX, "prev", "previous block hash"},
|
||||
{RPCResult::Type::OBJ, "", "",
|
||||
{
|
||||
{RPCResult::Type::NUM, "file", "blk*.dat/rev*.dat file index"},
|
||||
{RPCResult::Type::NUM, "data", "block data file offset"},
|
||||
{RPCResult::Type::NUM, "undo", /*optional=*/true, "undo data file offset (if exists)"},
|
||||
{RPCResult::Type::STR_HEX, "prev", "previous block hash"},
|
||||
}},
|
||||
}
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user