Update 15_1_getmininginfo.c

This commit is contained in:
Shannon Appelcline 2020-08-04 14:40:02 -10:00 committed by GitHub
parent 715abb168c
commit ac52f255a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)"
}