This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am dolaned on github. | |
* I am dolaned (https://keybase.io/dolaned) on keybase. | |
* I have a public key ASDCM7EIsiNde00R6TKbiHwgh9UQEzL5K5lBDK1KJ6B_PQo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class VersionPacket extends Packet { | |
/** | |
* Create a version packet. | |
* @constructor | |
* @param {Object?} options | |
* @param {Number} options.version - Protocol version. | |
* @param {Number} options.services - Service bits. | |
* @param {Number} options.time - Timestamp of discovery. | |
* @param {NetAddress} options.local - Our address. | |
* @param {NetAddress} options.remote - Their address. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* network.js - bitcoin networks for bcoin | |
* Copyright (c) 2014-2015, Fedor Indutny (MIT License) | |
* Copyright (c) 2014-2017, Christopher Jeffrey (MIT License). | |
* https://github.com/bcoin-org/bcoin | |
*/ | |
'use strict'; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int64_t nTime; | |
CAddress addrMe; | |
CAddress addrFrom; | |
uint64_t nNonce = 1; | |
uint64_t nServiceInt; | |
ServiceFlags nServices; | |
int nVersion; | |
int nSendVersion; | |
std::string strSubVer; |