From de201a247f0cb2087ac18099fe3e499e355a6f12 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Fri, 6 Jan 2017 18:50:27 +0900 Subject: [PATCH] Double fetch size of mempool. Set testnet genesis hash. --- lib/coins.py | 2 ++ server/mempool.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/coins.py b/lib/coins.py index cb5c384..9a1d10c 100644 --- a/lib/coins.py +++ b/lib/coins.py @@ -278,6 +278,8 @@ class BitcoinTestnet(Bitcoin): P2PKH_VERBYTE = 0x6f P2SH_VERBYTE = 0xc4 WIF_BYTE = 0xef + GENESIS_HASH=(b'000000000933ea01ad0ee984209779ba' + b'aec3ced90fa3f408719526f8d77f4943') REORG_LIMIT = 2000 TX_COUNT = 12242438 TX_COUNT_HEIGHT = 1035428 diff --git a/server/mempool.py b/server/mempool.py index 2bc66d3..1a491e9 100644 --- a/server/mempool.py +++ b/server/mempool.py @@ -89,7 +89,7 @@ class MemPool(util.LoggedClass): unprocessed = {} unfetched = set() txs = self.txs - fetch_size = 400 + fetch_size = 800 process_some = self.async_process_some(unfetched, fetch_size // 2) await self.daemon.mempool_refresh_event.wait()