mirror of
https://github.com/ChristopherA/Learning-Bitcoin-from-the-Command-Line.git
synced 2025-06-07 07:56:31 +00:00
Update 15_1_getmininginfo.c
This commit is contained in:
parent
715abb168c
commit
ac52f255a2
@ -71,29 +71,3 @@ int main(void) {
|
||||
bitcoinrpc_global_cleanup();
|
||||
|
||||
}
|
||||
```
|
||||
As usual, you can compile and run as follows:
|
||||
```
|
||||
$ cc getmininginfo.c -lbitcoinrpc -ljansson -o getmininginfo
|
||||
$ ./getmininginfo
|
||||
Full Response: {
|
||||
"result": {
|
||||
"blocks": 1773353,
|
||||
"difficulty": 10178811.406987719,
|
||||
"networkhashps": 129510207940932.2,
|
||||
"pooledtx": 9,
|
||||
"chain": "test",
|
||||
"warnings": "Warning: unknown new rules activated (versionbit 28)"
|
||||
},
|
||||
"error": null,
|
||||
"id": "6e502927-b065-486a-8182-bc1acd843bae"
|
||||
}
|
||||
|
||||
Just the Result: {
|
||||
"blocks": 1773353,
|
||||
"difficulty": 10178811.406987719,
|
||||
"networkhashps": 129510207940932.2,
|
||||
"pooledtx": 9,
|
||||
"chain": "test",
|
||||
"warnings": "Warning: unknown new rules activated (versionbit 28)"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user