获取单个用户某个时间维度的历史算力数据
https://www.tangpool.com/public/worker/share/
diff --git a/src/chainparams.cpp b/src/chainparams.cpp | |
index b52774e..e1e6238 100644 | |
--- a/src/chainparams.cpp | |
+++ b/src/chainparams.cpp | |
@@ -145,6 +145,7 @@ public: | |
vSeeds.push_back(CDNSSeedData("dashjr.org", "dnsseed.bitcoin.dashjr.org")); | |
vSeeds.push_back(CDNSSeedData("bitcoinstats.com", "seed.bitcoinstats.com")); | |
vSeeds.push_back(CDNSSeedData("bitnodes.io", "seed.bitnodes.io")); | |
+ vSeeds.push_back(CDNSSeedData("open-nodes.org", "seeds.bitcoin.open-nodes.org")); | |
vSeeds.push_back(CDNSSeedData("xf2.org", "bitseed.xf2.org")); |
# | |
# init shell for bitcoind 0.9.2.1, ubuntu 14.04 LTS | |
# | |
# @author PanZhibiao<[email protected]> | |
# @since 2014-09 | |
# @copyright open-nodes.com | |
# | |
# | |
# init pkgs |
diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp | |
index a303b5d..7411d36 100644 | |
--- a/src/rpcblockchain.cpp | |
+++ b/src/rpcblockchain.cpp | |
@@ -465,3 +465,49 @@ Value getblockchaininfo(const Array& params, bool fHelp) | |
obj.push_back(Pair("chainwork", chainActive.Tip()->nChainWork.GetHex())); | |
return obj; | |
} | |
+ | |
+ |
diff --git a/configure.ac b/configure.ac | |
index 30b9ff5..6ff9680 100644 | |
--- a/configure.ac | |
+++ b/configure.ac | |
@@ -400,6 +400,9 @@ if test x$use_upnp != xno; then | |
) | |
fi | |
+ZMQ_LIBS="-lzmq" | |
+LIBS="$LIBS $ZMQ_LIBS" |
/* | |
Copyright (c) 2009-2011 250bpm s.r.o. | |
Copyright (c) 2011 Botond Ballo | |
Copyright (c) 2007-2009 iMatix Corporation | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to | |
deal in the Software without restriction, including without limitation the | |
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | |
sell copies of the Software, and to permit persons to whom the Software is |
diff --git a/configure.ac b/configure.ac | |
index 30b9ff5..6ff9680 100644 | |
--- a/configure.ac | |
+++ b/configure.ac | |
@@ -400,6 +400,9 @@ if test x$use_upnp != xno; then | |
) | |
fi | |
+ZMQ_LIBS="-lzmq" | |
+LIBS="$LIBS $ZMQ_LIBS" |
diff -urN bitcoin-0.10.0/src/chainparams.cpp bitcoin-0.10.0_hub/src/chainparams.cpp | |
--- bitcoin-0.10.0/src/chainparams.cpp 2015-02-13 16:55:11.000000000 +0800 | |
+++ bitcoin-0.10.0_hub/src/chainparams.cpp 2015-02-28 14:35:51.000000000 +0800 | |
@@ -156,6 +156,7 @@ | |
vSeeds.push_back(CDNSSeedData("bluematt.me", "dnsseed.bluematt.me")); | |
vSeeds.push_back(CDNSSeedData("dashjr.org", "dnsseed.bitcoin.dashjr.org")); | |
vSeeds.push_back(CDNSSeedData("bitcoinstats.com", "seed.bitcoinstats.com")); | |
+ vSeeds.push_back(CDNSSeedData("open-nodes.org", "seeds.bitcoin.open-nodes.org")); | |
vSeeds.push_back(CDNSSeedData("xf2.org", "bitseed.xf2.org")); | |
#ifndef LIBEVENT_CONNECTIONH | |
#define LIBEVENT_CONNECTIONH | |
extern "C" { | |
#include <event2/event.h> | |
#include <event2/buffer.h> | |
#include <event2/bufferevent.h> | |
} | |
#include <string> |
ROOT=/work/nginx | |
mkdir -p "$ROOT" | |
cd "$ROOT" | |
apt-get install -y libpcre3 libpcre3-dev | |
# download packages | |
wget http://nginx.org/download/nginx-1.10.1.tar.gz | |
tar zxf nginx-1.10.1.tar.gz |