Merge pull request #177 from cpuchain/p2p

fix p2p peer node disconnected issue while p2p enabled
This commit is contained in:
Matthew Little 2019-12-04 13:50:15 -05:00 committed by GitHub
commit 57982f88b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -188,6 +188,9 @@ var Peer = module.exports = function (options) {
_this.emit('connected');
}
break;
case commands.version.toString():
SendMessage(commands.verack, Buffer.alloc(0));
break;
default:
break;
}