NODE_EXT_SERVICES and advertising related services



Summary:

The context discusses the implementation of 'getutxos' as an external application or script. However, it is noted that getutxos needs access to the UTXO set which bitcoind already has. Hence, it would be redundant to recalculate it from scratch in an external plugin. The author suggests having useful services like -txindex or the nLockTime storage facility added in such a way. Bitcoind would need a local interprocess message bus for that. The author proposes a simple solution where any program can connect to bitcoind as normal, send "registersrv" with the cookie and a list of command ids it's interested in, maybe a service bit to set, and start receiving those messages wrapped in a new structure. An additional standalone program can then bridge this mechanism to running a shell command for particular messages.


Updated on: 2023-06-09T02:04:03.866797+00:00