Skip to content

Commit

Permalink
Remove hasWitness from peer options
Browse files Browse the repository at this point in the history
  • Loading branch information
dagurval committed Feb 21, 2019
1 parent 574c3fa commit dcf21d1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
3 changes: 0 additions & 3 deletions docs/Examples/connect-to-peer.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ const network = bcoin.Network.get('testnet');
const peer = bcoin.Peer.fromOptions({
network: 'testnet',
agent: 'my-subversion',
hasWitness: () => {
return false;
}
});

const addr = bcoin.net.NetAddress.fromHostname(process.argv[2], 'testnet');
Expand Down
5 changes: 1 addition & 4 deletions test/node-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -776,10 +776,7 @@ describe('Node', function() {
const tx1 = TX.fromRaw(rawTX1, 'hex');
const dummyPeer = Peer.fromOptions({
network: 'regtest',
agent: 'my-subversion',
hasWitness: () => {
return false;
}
agent: 'my-subversion'
});
const txItem = new InvItem(invTypes.TX, tx1.hash());
await node.sendTX(tx1); // add TX to inventory
Expand Down

0 comments on commit dcf21d1

Please sign in to comment.