readme
This commit is contained in:
parent
187137262e
commit
52968e0666
@ -70,7 +70,7 @@ node.open(function(err) {
|
|||||||
// Wait for balance and send it to a new address.
|
// Wait for balance and send it to a new address.
|
||||||
wallet.once('balance', function(balance) {
|
wallet.once('balance', function(balance) {
|
||||||
var newReceiving = wallet.createAddress();
|
var newReceiving = wallet.createAddress();
|
||||||
console.log('Created new receiving address.');
|
console.log('Created new receiving address: %s', newReceiving);
|
||||||
// Create a transaction, fill
|
// Create a transaction, fill
|
||||||
// it with coins, and sign it.
|
// it with coins, and sign it.
|
||||||
wallet.createTX({
|
wallet.createTX({
|
||||||
@ -103,11 +103,11 @@ node.open(function(err) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
node.chain.on('block', function(block) {
|
node.chain.on('block', function(block) {
|
||||||
utils.print(block);
|
console.log(block);
|
||||||
});
|
});
|
||||||
|
|
||||||
node.mempool.on('tx', function(tx) {
|
node.mempool.on('tx', function(tx) {
|
||||||
utils.print(block);
|
console.log(block);
|
||||||
});
|
});
|
||||||
|
|
||||||
node.chain.on('full', function() {
|
node.chain.on('full', function() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user