mirror of
https://github.com/ChristopherA/Learning-Bitcoin-from-the-Command-Line.git
synced 2026-02-16 14:12:48 +00:00
Update 16_1_Accessing_Bitcoind_with_C.md
This commit is contained in:
parent
e862198b4e
commit
7a9d9f4fc1
@ -6,8 +6,6 @@ You've already seen one alternative way to access the Bitcoind's RPC ports: `cur
|
|||||||
|
|
||||||
## Set Up libbitcoinrpc
|
## Set Up libbitcoinrpc
|
||||||
|
|
||||||
> :warning: **WARNING** It appears that `libbitcoinrpc` has been entirely abandoned. We have logged updating this to a new C library as an [issue](https://github.com/BlockchainCommons/Community/issues/140). In the meantime, the `libbitcoinrpc` library does not currently compile without intervention. As a result 16.1 and 16.2 is mainly viewable as pseudo-code that shows the process of integrating Bitcoin-Core with C.
|
|
||||||
|
|
||||||
To use `libbitcoinrpc`, you need to install a basic C setup and the dependent packages `libcurl`, `libjansson`, and `libuuid`. The following will do so on your Bitcoin Standup server (or any other Ubuntu server).
|
To use `libbitcoinrpc`, you need to install a basic C setup and the dependent packages `libcurl`, `libjansson`, and `libuuid`. The following will do so on your Bitcoin Standup server (or any other Ubuntu server).
|
||||||
```
|
```
|
||||||
$ sudo apt-get install make gcc libcurl4-openssl-dev libjansson-dev uuid-dev
|
$ sudo apt-get install make gcc libcurl4-openssl-dev libjansson-dev uuid-dev
|
||||||
@ -26,8 +24,6 @@ $ sudo apt-get install git
|
|||||||
$ git clone https://github.com/BlockchainCommons/libbitcoinrpc.git
|
$ git clone https://github.com/BlockchainCommons/libbitcoinrpc.git
|
||||||
```
|
```
|
||||||
|
|
||||||
> :warning: **WARNING** A change in the "signrawtransaction" RPC caused signing with `libbitcoinrpc` to segfault for Bitcoin 0.17 or higher. A [PR has been submitted](https://github.com/gitmarek/libbitcoinrpc/pull/1) to resolve the problem, but if it hasn't yet been merged, you can just make the one simple change in the source code to `src/bitcoinrpc_method.c` before compiling.
|
|
||||||
|
|
||||||
### Compiling libbitcoinrpc
|
### Compiling libbitcoinrpc
|
||||||
|
|
||||||
Before you can compile and install the package, you'll probably need to adjust your `$PATH`, so that you can access `/sbin/ldconfig`:
|
Before you can compile and install the package, you'll probably need to adjust your `$PATH`, so that you can access `/sbin/ldconfig`:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user