|
|
|
@ -10,7 +10,7 @@
|
|
|
|
|
|
|
|
|
|
* Bitcoin full node (bitcore-node)
|
|
|
|
|
* Block explorer (insight)
|
|
|
|
|
* Block, transaction and wallet utilities (bitcore-lib)
|
|
|
|
|
* Block, transaction, and wallet utilities (bitcore-lib)
|
|
|
|
|
* Communicating directly with Bitcoin's P2P network (bitcore-p2p)
|
|
|
|
|
* Seed entropy mnemonic generation (bitcore-mnemonic)
|
|
|
|
|
* Payment protocol (bitcore-payment-protocol)
|
|
|
|
@ -91,7 +91,7 @@ Broadcasting a transaction to the Bitcoin network
|
|
|
|
|
1. Copy the code below into a file called _broadcast.js_.
|
|
|
|
|
2. The +tx+ and +rbfTx+ variables are the output of +tx.serialize()+ and +rbfTx.serialize()+, respectively.
|
|
|
|
|
3. In order to replace-by-fee, the peer must support bitcoind option +mempoolreplace+ and have it set to +1+.
|
|
|
|
|
4. Run the file: node _broadcast.js_((("", startref="bitcore17")))
|
|
|
|
|
4. Run the file node _broadcast.js_((("", startref="bitcore17"))):
|
|
|
|
|
|
|
|
|
|
----
|
|
|
|
|
var p2p = require('bitcore-p2p');
|
|
|
|
|