This file contains hidden or 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
From a7701e7d4f580d59379b5f3ff7644583583e4d94 Mon Sep 17 00:00:00 2001 | |
From: elbandi <bandispam@gmail.com> | |
Date: Sun, 24 May 2020 12:40:12 +0200 | |
Subject: [PATCH] Add getblockchaininfo and getnetworkinfo rpc calls | |
--- | |
src/bitcoinrpc.cpp | 2 ++ | |
src/bitcoinrpc.h | 2 ++ | |
src/net.cpp | 20 ++++++++++---------- | |
src/net.h | 8 ++++++++ |
This file contains hidden or 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
var net = require('net'); | |
var sockets = []; | |
var port = 8000; | |
var remoteHost = "127.0.0.1"; | |
var remotePort = 1234; | |
var server = net.createServer(function(socket) { | |
socket.name = socket.remoteAddress + ":" + socket.remotePort |
This file contains hidden or 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
diff --git a/src/main.cpp b/src/main.cpp | |
--- a/src/main.cpp | |
+++ b/src/main.cpp | |
@@ -1497,20 +1497,10 @@ CBufferStream<88> CBlockHeader::SerializeHeaderForHash1() const | |
CBufferStream<185> CBlockHeader::SerializeHeaderForHash2() const | |
{ | |
- uint256 hashContent = hashMerkleRoot; | |
- if (nHeight > getThirdHardforkBlock()) | |
- { |