Skip to content

Commit

Permalink
Assume witness supported by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
tecnovert committed May 16, 2017
1 parent e7339f8 commit fe8bdb2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion protocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ CAddress::CAddress(CService ipIn, uint64 nServicesIn) : CService(ipIn)

void CAddress::Init()
{
nServices = NODE_NETWORK;
nServices = NODE_NETWORK | NODE_WITNESS;
nTime = 100000000;
}

Expand Down
3 changes: 2 additions & 1 deletion protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,14 @@ class CMessageHeader
enum
{
NODE_NETWORK = (1 << 0),
NODE_WITNESS = (1 << 3),
};

class CAddress : public CService
{
public:
CAddress();
CAddress(CService ipIn, uint64 nServicesIn=NODE_NETWORK);
CAddress(CService ipIn, uint64 nServicesIn=(NODE_NETWORK | NODE_WITNESS));

void Init();

Expand Down

0 comments on commit fe8bdb2

Please sign in to comment.