mirror of
https://github.com/ChristopherA/Learning-Bitcoin-from-the-Command-Line.git
synced 2025-06-07 07:56:31 +00:00
fix: updated libbitcoinrpc repository links
This commit is contained in:
parent
e53f72a06f
commit
89330cadc5
@ -20,13 +20,13 @@ Need to get 358 kB of archives.
|
|||||||
After this operation, 1.696 kB of additional disk space will be used.
|
After this operation, 1.696 kB of additional disk space will be used.
|
||||||
Do you want to continue? [Y/n] y
|
Do you want to continue? [Y/n] y
|
||||||
```
|
```
|
||||||
You can then download [libbitcoinrpc from Github](https://github.com/gitmarek/libbitcoinrpc/blob/master/README.md). Clone it or grab a zip file, as you prefer.
|
You can then download [libbitcoinrpc from Github](https://github.com/BlockchainCommons/libbitcoinrpc/blob/master/README.md). Clone it or grab a zip file, as you prefer.
|
||||||
```
|
```
|
||||||
$ sudo apt-get install git
|
$ 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/commits) 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.
|
> :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
|
||||||
|
|
||||||
@ -162,7 +162,7 @@ Successfully connected to server!
|
|||||||
|
|
||||||
## Make an RPC Call
|
## Make an RPC Call
|
||||||
|
|
||||||
In order to use an RPC method using `libbitcoinrpc`, you must initialize a variable of type `bitcoinrpc_method_t`. You do so with the appropriate value for the method you want to use, all of which are listed in the [bitcoinrpc Reference](https://github.com/gitmarek/libbitcoinrpc/blob/master/doc/reference.md).
|
In order to use an RPC method using `libbitcoinrpc`, you must initialize a variable of type `bitcoinrpc_method_t`. You do so with the appropriate value for the method you want to use, all of which are listed in the [bitcoinrpc Reference](https://github.com/BlockchainCommons/libbitcoinrpc/blob/master/doc/reference.md).
|
||||||
```
|
```
|
||||||
bitcoinrpc_method_t *getmininginfo = NULL;
|
bitcoinrpc_method_t *getmininginfo = NULL;
|
||||||
getmininginfo = bitcoinrpc_method_init(BITCOINRPC_METHOD_GETMININGINFO);
|
getmininginfo = bitcoinrpc_method_init(BITCOINRPC_METHOD_GETMININGINFO);
|
||||||
|
@ -18,13 +18,13 @@ Need to get 358 kB of archives.
|
|||||||
After this operation, 1.696 kB of additional disk space will be used.
|
After this operation, 1.696 kB of additional disk space will be used.
|
||||||
Do you want to continue? [Y/n] y
|
Do you want to continue? [Y/n] y
|
||||||
```
|
```
|
||||||
Puede descargar [libbitcoinrpc de Github](https://github.com/gitmarek/libbitcoinrpc/blob/master/README.md). Clónelo o tome un archivo zip, como prefiera.
|
Puede descargar [libbitcoinrpc de Github](https://github.com/BlockchainCommons/libbitcoinrpc/blob/master/README.md). Clónelo o tome un archivo zip, como prefiera.
|
||||||
```
|
```
|
||||||
$ sudo apt-get install git
|
$ sudo apt-get install git
|
||||||
$ git clone https://github.com/gitmarek/libbitcoinrpc
|
$ git clone https://github.com/BlockchainCommons/libbitcoinrpc
|
||||||
```
|
```
|
||||||
|
|
||||||
> :warning: **ADVERTENCIA** Un cambio en el RPC de "signrawtransaction" provocó que la firma con `libbitcoinrpc` provocara un segfault para Bitcoin 0.17 o superior. [Se ha enviado un PR](https://github.com/gitmarek/libbitcoinrpc/pull/1/commits) para resolver el problema, pero si aún no se ha fusionado, puede hacer un simple cambio en el código fuente `src/bitcoinrpc_method.c` antes de compilar.
|
> :warning: **ADVERTENCIA** Un cambio en el RPC de "signrawtransaction" provocó que la firma con `libbitcoinrpc` provocara un segfault para Bitcoin 0.17 o superior. [Se ha enviado un PR](https://github.com/gitmarek/libbitcoinrpc/pull/1) para resolver el problema, pero si aún no se ha fusionado, puede hacer un simple cambio en el código fuente `src/bitcoinrpc_method.c` antes de compilar.
|
||||||
|
|
||||||
|
|
||||||
### Compilar libbitcoinrpc
|
### Compilar libbitcoinrpc
|
||||||
@ -161,7 +161,7 @@ Successfully connected to server!
|
|||||||
|
|
||||||
## Realizar una llamada RPC
|
## Realizar una llamada RPC
|
||||||
|
|
||||||
Para utilizar un método RPC con `libbitcoinrpc`, debe inicializar una variable de tipo `bitcoinrpc_method_t`. Lo hace con el valor apropiado para el método que desea utilizar, todos los cuales se enumeran en la [referencia bitcoinrpc](https://github.com/gitmarek/libbitcoinrpc/blob/master/doc/reference.md).
|
Para utilizar un método RPC con `libbitcoinrpc`, debe inicializar una variable de tipo `bitcoinrpc_method_t`. Lo hace con el valor apropiado para el método que desea utilizar, todos los cuales se enumeran en la [referencia bitcoinrpc](https://github.com/BlockchainCommons/libbitcoinrpc/blob/master/doc/reference.md).
|
||||||
```
|
```
|
||||||
bitcoinrpc_method_t *getmininginfo = NULL;
|
bitcoinrpc_method_t *getmininginfo = NULL;
|
||||||
getmininginfo = bitcoinrpc_method_init(BITCOINRPC_METHOD_GETMININGINFO);
|
getmininginfo = bitcoinrpc_method_init(BITCOINRPC_METHOD_GETMININGINFO);
|
||||||
|
@ -19,14 +19,14 @@ Need to get 358 kB of archives.
|
|||||||
After this operation, 1.696 kB of additional disk space will be used.
|
After this operation, 1.696 kB of additional disk space will be used.
|
||||||
Do you want to continue? [Y/n] y
|
Do you want to continue? [Y/n] y
|
||||||
```
|
```
|
||||||
Agora, podemos baixar o [libbitcoinrpc no github](https://github.com/gitmarek/libbitcoinrpc/blob/master/readme.md). Vamos clonar ou pegar um arquivo zip, do jeito que preferir.
|
Agora, podemos baixar o [libbitcoinrpc no github](https://github.com/BlockchainCommons/libbitcoinrpc/blob/master/readme.md). Vamos clonar ou pegar um arquivo zip, do jeito que preferir.
|
||||||
|
|
||||||
```
|
```
|
||||||
$ sudo apt-get install git
|
$ sudo apt-get install git
|
||||||
$ git clone https://github.com/gitmarek/libbitcoinrpc
|
$ git clone https://github.com/BlockchainCommons/libbitcoinrpc
|
||||||
```
|
```
|
||||||
|
|
||||||
> :warning: **ATENÇÃO** Uma alteração no RPC "signrawtransaction" causou uma assinatura com ``libbitcoinrpc`` para o segfault no Bitcoin 0.17 ou superior. O [Pull Request foi submetido](https://github.com/gitmarek/libbitcoinrpc/pull/1/commits) para resolver o problema, mas se ainda não tiver sido feito o merge, podemos simplesmente fazer uma simples mudança no código-fonte para ``src/bitcoinrpc_method.c`` antes de compilarmos.
|
> :warning: **ATENÇÃO** Uma alteração no RPC "signrawtransaction" causou uma assinatura com ``libbitcoinrpc`` para o segfault no Bitcoin 0.17 ou superior. O [Pull Request foi submetido](https://github.com/gitmarek/libbitcoinrpc/pull/1) para resolver o problema, mas se ainda não tiver sido feito o merge, podemos simplesmente fazer uma simples mudança no código-fonte para ``src/bitcoinrpc_method.c`` antes de compilarmos.
|
||||||
|
|
||||||
### Compilando o libbitcoinrpc
|
### Compilando o libbitcoinrpc
|
||||||
|
|
||||||
@ -168,7 +168,7 @@ Successfully connected to server!
|
|||||||
|
|
||||||
## Fazendo uma Chamada ao RPC
|
## Fazendo uma Chamada ao RPC
|
||||||
|
|
||||||
Para usarmos um método RPC usando ``libbitcoinrpc``, devemos inicializar uma variável do tipo ``bitcoinrpc_method_t``. Podemos fazer com o valor apropriado para o método que desejamos utilizar, que estão todos listados na [Referências do BitcoinRPC](https://github.com/gitmarek/libbitcoinrpc/blob/master/doc/reference.md).
|
Para usarmos um método RPC usando ``libbitcoinrpc``, devemos inicializar uma variável do tipo ``bitcoinrpc_method_t``. Podemos fazer com o valor apropriado para o método que desejamos utilizar, que estão todos listados na [Referências do BitcoinRPC](https://github.com/BlockchainCommons/libbitcoinrpc/blob/master/doc/reference.md).
|
||||||
``` c
|
``` c
|
||||||
bitcoinrpc_method_t *getmininginfo = NULL;
|
bitcoinrpc_method_t *getmininginfo = NULL;
|
||||||
getmininginfo = bitcoinrpc_method_init(BITCOINRPC_METHOD_GETMININGINFO);
|
getmininginfo = bitcoinrpc_method_init(BITCOINRPC_METHOD_GETMININGINFO);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user