diff options
| author | Rusty Russell <[email protected]> | 2016-04-12 15:44:18 +0930 |
|---|---|---|
| committer | Rusty Russell <[email protected]> | 2016-04-13 16:53:52 +0930 |
| commit | 85c807c9ead3215021503348e75851900dfa08db (patch) | |
| tree | 6cbfafb99c6ecc71196f79e93b753b17a1701591 /src/test/script_P2SH_tests.cpp | |
| parent | Merge #7858: Add jl2012 public key for gitian build (diff) | |
| download | discoin-85c807c9ead3215021503348e75851900dfa08db.tar.xz discoin-85c807c9ead3215021503348e75851900dfa08db.zip | |
getblockchaininfo: make bip9_softforks an object, not an array.
We can't change "softforks", but it seems far more logical to use tags
in an object rather than using an "id" field in an array.
For example, to get the csv status before, you need to iterate the
array to find the entry with 'id' field equal to "csv":
jq '.bip9_softforks | map(select(.id == "csv"))[] | .status'
Now:
jq '.bip9_softforks.csv.status'
There is no issue with fork names being incompatible with JSON tags,
since we're selecting them ourselves.
Signed-off-by: Rusty Russell <[email protected]>
Diffstat (limited to 'src/test/script_P2SH_tests.cpp')
0 files changed, 0 insertions, 0 deletions