Update 16_3_Recibiendo_Notificaciones_de_Bitcoind_en_C_con_las_Bibliotecas_ZMQ.md

This commit is contained in:
Javier Vargas 2021-08-05 13:49:12 +02:00 committed by GitHub
parent 8117b511f7
commit 9fd43b3ddf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,10 +25,10 @@ $ bitcoind --help | grep zmq | grep address
Puede ejecutar `bitcoind` con argumentos de línea de comandos para puntos finales ZMQ, como se muestra arriba, pero también puede hacer que un punto final sea accesible agregando líneas apropiadas a su archivo `~/.bitcoin/bitcoin.conf` y reiniciando su demonio.
''
```
zmqpubrawblock = tcp: //127.0.0.1: 28332
zmqpubrawtx = tcp: //127.0.0.1: 28333
''
```
Luego puede probar que sus puntos finales están funcionando usando el RPC `getzmqnotifications`:
@ -133,7 +133,7 @@ Por supuesto, cuando termine, debe limpiar:
### Pruebe el código de notificación
El código fuente está en el [directorio src](src/15_3_chainlistener.c) como de costumbre. Debería compilarlo:
El código fuente está en el [directorio src](../src/15_3_chainlistener.c) como de costumbre. Debería compilarlo:
```
$ cc -o chainlistener chainlistener.c -I/usr/local/include -L/usr/local/lib -lzmq -lczmq