DeFiCh / ain

DeFi Blockchain - enabling decentralized finance on Bitcoin
https://defichain.com
MIT License
398 stars 118 forks source link

dfid stops running without shutting down after 15-30 seconds #971

Closed benzmuircroft closed 2 years ago

benzmuircroft commented 2 years ago

Every time I run dfid it stops after 15-30 seconds (it does not even say shutting down)

I'm on a dedicated server Ubuntu 20

conf:

rpcuser=redacted
rpcpassword=redacted

prune=2048
txindex=0
blocksonly=1
dbcache=30
maxsigcachesize=30
maxconnections=13
rpcthreads=5
maxorphantx=10
listenonion=0

port=8555
rpcport=8554
listen=1

datadir=/home/DFI/data

walletnotify=[ -e "/home/DFI/tx.js" ] && node /home/DFI/tx.js %s
blocknotify=[ -e "/home/DFI/block.js" ] && node /home/DFI/block.js %s

addnode=75.2.60.5

debug:


2021-12-09T14:26:05Z DeFi Blockchain version v2.2.1.0-release (release build)
2021-12-09T14:26:05Z InitParameterInteraction: parameter interaction: -blocksonly=1 -> setting -whitelistrelay=0
2021-12-09T14:26:05Z Assuming ancestors of block 9b257cb88630e422902ef2b17a3627ae2f786a5923df9c3bda4226f9551b1ea8 have valid signatures.
2021-12-09T14:26:05Z Setting nMinimumChainWork=000000000000000000000000000000000000000000003f2949bfe4efc275390c
2021-12-09T14:26:05Z Prune configured to target 2048 MiB on disk for block and undo files.
2021-12-09T14:26:05Z ParameterInteraction: parameter interaction: -blocksonly=1 -> setting -walletbroadcast=0
2021-12-09T14:26:05Z Using the 'sse4(1way),sse41(4way),avx2(8way)' SHA256 implementation
2021-12-09T14:26:05Z Using RdSeed as additional entropy source
2021-12-09T14:26:05Z Using RdRand as an additional entropy source
2021-12-09T14:26:05Z Default data directory /root/.defi
2021-12-09T14:26:05Z Using data directory /home/DFI/data
2021-12-09T14:26:05Z Config file: /home/DFI/data/defi.conf
2021-12-09T14:26:05Z Using at most 13 automatic connections (1024 file descriptors available)
2021-12-09T14:26:05Z Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elements
2021-12-09T14:26:05Z Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements
2021-12-09T14:26:05Z Using 4 threads for script verification
2021-12-09T14:26:05Z scheduler thread start
2021-12-09T14:26:05Z libevent: getaddrinfo: address family for nodename not supported
2021-12-09T14:26:05Z Binding RPC on address ::1 port 8554 failed.
2021-12-09T14:26:05Z HTTP: creating work queue of depth 16
2021-12-09T14:26:05Z Config options rpcuser and rpcpassword will soon be deprecated. Locally-run instances may remove rpcuser to use cookie-based auth, or may be replaced with rpcauth. Please see share/rpcauth for rpcauth auth generation.
2021-12-09T14:26:05Z HTTP: starting 5 worker threads
2021-12-09T14:26:05Z Using wallet directory /home/DFI/data
2021-12-09T14:26:05Z init message: Verifying wallet(s)...
2021-12-09T14:26:05Z Using BerkeleyDB version Berkeley DB 4.8.30: (April  9, 2010)
2021-12-09T14:26:05Z Using wallet /home/DFI/data
2021-12-09T14:26:05Z BerkeleyEnvironment::Open: LogDir=/home/DFI/data/database ErrorFile=/home/DFI/data/db.log
2021-12-09T14:26:05Z init message: Loading banlist...
2021-12-09T14:26:05Z Cache configuration:
2021-12-09T14:26:05Z * Using 2.0 MiB for block index database
2021-12-09T14:26:05Z * Using 8.0 MiB for chain state database
2021-12-09T14:26:05Z * Using 440.0 MiB for in-memory UTXO set (plus up to 286.1 MiB of unused mempool space)
2021-12-09T14:26:05Z init message: Loading block index...
2021-12-09T14:26:05Z Opening LevelDB in /home/DFI/data/blocks/index
2021-12-09T14:26:05Z Opened LevelDB successfully
2021-12-09T14:26:05Z Using obfuscation key for /home/DFI/data/blocks/index: 0000000000000000
2021-12-09T14:26:14Z LoadBlockIndexDB: last block file = 16
2021-12-09T14:26:14Z LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=9538, size=101038293, heights=1421367...1430639, time=2021-12-04...2021-12-07)
2021-12-09T14:26:14Z Checking all blk files are present...
2021-12-09T14:26:14Z LoadBlockIndexDB(): Block files have previously been pruned
2021-12-09T14:26:14Z Opening LevelDB in /home/DFI/data/chainstate
2021-12-09T14:26:14Z Opened LevelDB successfully
2021-12-09T14:26:14Z Using obfuscation key for /home/DFI/data/chainstate: e27d19a3c8810476
2021-12-09T14:26:14Z Opening LevelDB in /home/DFI/data/enhancedcs
2021-12-09T14:26:14Z Opened LevelDB successfully
2021-12-09T14:26:14Z Using obfuscation key for /home/DFI/data/enhancedcs: 0000000000000000
2021-12-09T14:26:14Z Opening LevelDB in /home/DFI/data/history
2021-12-09T14:26:14Z Opened LevelDB successfully
2021-12-09T14:26:14Z Using obfuscation key for /home/DFI/data/history: 0000000000000000
2021-12-09T14:26:14Z Opening LevelDB in /home/DFI/data/burn
2021-12-09T14:26:14Z Opened LevelDB successfully
2021-12-09T14:26:14Z Using obfuscation key for /home/DFI/data/burn: 0000000000000000
2021-12-09T14:26:15Z Loaded best chain: hashBestChain=57d3a5c18c69baee59a36796cabe20267d692466f760fa481076af2692091eca height=1430639 date=2021-12-07T14:45:13Z progress=0.994690
2021-12-09T14:26:15Z init message: Rewinding blocks...
2021-12-09T14:26:15Z init message: Verifying blocks...
2021-12-09T14:26:15Z Verifying last 6 blocks at level 3
2021-12-09T14:26:15Z [0%]...[16%]...[33%]...[50%]...[66%]...[83%]...[99%]...[DONE].
2021-12-09T14:26:15Z No coin database inconsistencies in last 6 blocks (412 transactions)
2021-12-09T14:26:15Z  block index            9833ms
2021-12-09T14:26:15Z init message: Loading wallet...
2021-12-09T14:26:15Z BerkeleyEnvironment::Open: LogDir=/home/DFI/data/database ErrorFile=/home/DFI/data/db.log
2021-12-09T14:26:15Z [default wallet] Wallet File Version = 169900
2021-12-09T14:26:15Z [default wallet] Keys: 0 plaintext, 4042 encrypted, 4042 w/ metadata, 4042 total. Unknown wallet records: 0
2021-12-09T14:26:15Z [default wallet] Wallet completed loading in             219ms
2021-12-09T14:26:15Z [default wallet] setKeyPool.size() = 2000
2021-12-09T14:26:15Z [default wallet] mapWallet.size() = 0
2021-12-09T14:26:15Z [default wallet] mapAddressBook.size() = 41
2021-12-09T14:26:15Z Opening LevelDB in /home/DFI/data/anchors
2021-12-09T14:26:15Z Opened LevelDB successfully
2021-12-09T14:26:15Z Using obfuscation key for /home/DFI/data/anchors: 0000000000000000
2021-12-09T14:26:15Z Opening LevelDB in /home/DFI/data/spv
2021-12-09T14:26:16Z Opened LevelDB successfully
2021-12-09T14:26:16Z Using obfuscation key for /home/DFI/data/spv: 0000000000000000
2021-12-09T14:26:16Z Unsetting NODE_NETWORK on prune mode
2021-12-09T14:26:16Z init message: Pruning blockstore...
2021-12-09T14:26:16Z block tree size = 1431076
2021-12-09T14:26:16Z nBestHeight = 1430639
2021-12-09T14:26:16Z AddLocal(15.235.26.150:8555,1)
2021-12-09T14:26:16Z Discover: IPv4 venet0:0: 15.235.26.150
2021-12-09T14:26:16Z Bound to [::]:8555
2021-12-09T14:26:16Z Bound to 0.0.0.0:8555
2021-12-09T14:26:16Z init message: Loading P2P addresses...
2021-12-09T14:26:16Z UpdateTip: new best=bac805ee00696df398aed3338403c7bfea2822111bfcb18867079c12bc2ab726 height=1430638 version=0x20000000 log2_work=85.02532 tx=5920968 date='2021-12-07T14:44:53Z' progress=0.994689 cache=0.0MiB(71txo)
2021-12-09T14:26:16Z Loaded 36970 addresses from peers.dat  108ms
2021-12-09T14:26:16Z init message: Starting network threads...
2021-12-09T14:26:16Z net thread start
2021-12-09T14:26:16Z addcon thread start
2021-12-09T14:26:16Z dnsseed thread start
2021-12-09T14:26:16Z init message: Done loading
2021-12-09T14:26:16Z opencon thread start
2021-12-09T14:26:16Z msghand thread start
2021-12-09T14:26:27Z Loading addresses from DNS seeds (could take a while)
2021-12-09T14:26:27Z 0 addresses found from DNS seeds
2021-12-09T14:26:27Z dnsseed thread exit
2021-12-09T14:26:32Z New outbound peer connected: version: 70022, blocks=1435328, peer=0
2021-12-09T14:26:32Z New outbound peer connected: version: 70022, blocks=1435328, peer=1
2021-12-09T14:26:33Z Synchronizing blockheaders, height: 1432638 (~99.81%)
2021-12-09T14:26:34Z New outbound peer connected: version: 70022, blocks=1435328, peer=3
2021-12-09T14:26:34Z New outbound peer connected: version: 70022, blocks=1435328, peer=2
2021-12-09T14:26:35Z Synchronizing blockheaders, height: 1434638 (~99.95%)

2021-12-09T16:03:52Z DeFi Blockchain version v2.2.1.0-release (release build)
2021-12-09T16:03:52Z InitParameterInteraction: parameter interaction: -blocksonly=1 -> setting -whitelistrelay=0
2021-12-09T16:03:52Z Assuming ancestors of block 9b257cb88630e422902ef2b17a3627ae2f786a5923df9c3bda4226f9551b1ea8 have valid signatures.
2021-12-09T16:03:52Z Setting nMinimumChainWork=000000000000000000000000000000000000000000003f2949bfe4efc275390c
2021-12-09T16:03:52Z Prune configured to target 2048 MiB on disk for block and undo files.
2021-12-09T16:03:52Z ParameterInteraction: parameter interaction: -blocksonly=1 -> setting -walletbroadcast=0
2021-12-09T16:03:52Z Using the 'sse4(1way),sse41(4way),avx2(8way)' SHA256 implementation
2021-12-09T16:03:52Z Using RdSeed as additional entropy source
2021-12-09T16:03:52Z Using RdRand as an additional entropy source
2021-12-09T16:03:52Z Default data directory /root/.defi
2021-12-09T16:03:52Z Using data directory /home/DFI/data
2021-12-09T16:03:52Z Config file: /home/DFI/data/defi.conf
2021-12-09T16:03:52Z Using at most 13 automatic connections (1024 file descriptors available)
2021-12-09T16:03:52Z Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elements
2021-12-09T16:03:52Z Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements
2021-12-09T16:03:52Z Using 4 threads for script verification
2021-12-09T16:03:52Z scheduler thread start
2021-12-09T16:03:52Z libevent: getaddrinfo: address family for nodename not supported
2021-12-09T16:03:52Z Binding RPC on address ::1 port 8554 failed.
2021-12-09T16:03:52Z HTTP: creating work queue of depth 16
2021-12-09T16:03:52Z Config options rpcuser and rpcpassword will soon be deprecated. Locally-run instances may remove rpcuser to use cookie-based auth, or may be replaced with rpcauth. Please see share/rpcauth for rpcauth auth generation.
2021-12-09T16:03:52Z HTTP: starting 5 worker threads
2021-12-09T16:03:52Z Using wallet directory /home/DFI/data
2021-12-09T16:03:52Z init message: Verifying wallet(s)...
2021-12-09T16:03:52Z Using BerkeleyDB version Berkeley DB 4.8.30: (April  9, 2010)
2021-12-09T16:03:52Z Using wallet /home/DFI/data
2021-12-09T16:03:52Z BerkeleyEnvironment::Open: LogDir=/home/DFI/data/database ErrorFile=/home/DFI/data/db.log
2021-12-09T16:03:52Z init message: Loading banlist...
2021-12-09T16:03:52Z Cache configuration:
2021-12-09T16:03:52Z * Using 2.0 MiB for block index database
2021-12-09T16:03:52Z * Using 8.0 MiB for chain state database
2021-12-09T16:03:52Z * Using 440.0 MiB for in-memory UTXO set (plus up to 286.1 MiB of unused mempool space)
2021-12-09T16:03:52Z init message: Loading block index...
2021-12-09T16:03:52Z Opening LevelDB in /home/DFI/data/blocks/index
2021-12-09T16:03:53Z Opened LevelDB successfully
2021-12-09T16:03:53Z Using obfuscation key for /home/DFI/data/blocks/index: 0000000000000000
2021-12-09T16:04:01Z LoadBlockIndexDB: last block file = 16
2021-12-09T16:04:01Z LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=9538, size=101038293, heights=1421367...1430639, time=2021-12-04...2021-12-07)
2021-12-09T16:04:01Z Checking all blk files are present...
2021-12-09T16:04:01Z LoadBlockIndexDB(): Block files have previously been pruned
2021-12-09T16:04:01Z Opening LevelDB in /home/DFI/data/chainstate
2021-12-09T16:04:01Z Opened LevelDB successfully
2021-12-09T16:04:01Z Using obfuscation key for /home/DFI/data/chainstate: e27d19a3c8810476
2021-12-09T16:04:01Z Opening LevelDB in /home/DFI/data/enhancedcs
2021-12-09T16:04:01Z Opened LevelDB successfully
2021-12-09T16:04:01Z Using obfuscation key for /home/DFI/data/enhancedcs: 0000000000000000
2021-12-09T16:04:01Z Opening LevelDB in /home/DFI/data/history
2021-12-09T16:04:02Z Opened LevelDB successfully
2021-12-09T16:04:02Z Using obfuscation key for /home/DFI/data/history: 0000000000000000
2021-12-09T16:04:02Z Opening LevelDB in /home/DFI/data/burn
2021-12-09T16:04:02Z Opened LevelDB successfully
2021-12-09T16:04:02Z Using obfuscation key for /home/DFI/data/burn: 0000000000000000
2021-12-09T16:04:02Z Loaded best chain: hashBestChain=57d3a5c18c69baee59a36796cabe20267d692466f760fa481076af2692091eca height=1430639 date=2021-12-07T14:45:13Z progress=0.994509
2021-12-09T16:04:02Z init message: Rewinding blocks...
2021-12-09T16:04:05Z init message: Verifying blocks...
2021-12-09T16:04:05Z Verifying last 6 blocks at level 3
2021-12-09T16:04:05Z [0%]...[16%]...[33%]...[50%]...[66%]...[83%]...[99%]...[DONE].
2021-12-09T16:04:05Z No coin database inconsistencies in last 6 blocks (412 transactions)
2021-12-09T16:04:05Z  block index           12185ms
2021-12-09T16:04:05Z init message: Loading wallet...
2021-12-09T16:04:05Z BerkeleyEnvironment::Open: LogDir=/home/DFI/data/database ErrorFile=/home/DFI/data/db.log
2021-12-09T16:04:05Z [default wallet] Wallet File Version = 169900
2021-12-09T16:04:05Z [default wallet] Keys: 0 plaintext, 4042 encrypted, 4042 w/ metadata, 4042 total. Unknown wallet records: 0
2021-12-09T16:04:05Z [default wallet] Wallet completed loading in             424ms
2021-12-09T16:04:05Z [default wallet] setKeyPool.size() = 2000
2021-12-09T16:04:05Z [default wallet] mapWallet.size() = 0
2021-12-09T16:04:05Z [default wallet] mapAddressBook.size() = 41
2021-12-09T16:04:05Z Opening LevelDB in /home/DFI/data/anchors
2021-12-09T16:04:05Z Opened LevelDB successfully
2021-12-09T16:04:05Z Using obfuscation key for /home/DFI/data/anchors: 0000000000000000
2021-12-09T16:04:05Z Opening LevelDB in /home/DFI/data/spv
2021-12-09T16:04:06Z Opened LevelDB successfully
2021-12-09T16:04:06Z Using obfuscation key for /home/DFI/data/spv: 0000000000000000
2021-12-09T16:04:06Z Unsetting NODE_NETWORK on prune mode
2021-12-09T16:04:06Z init message: Pruning blockstore...
2021-12-09T16:04:06Z block tree size = 1431076
2021-12-09T16:04:06Z nBestHeight = 1430639
2021-12-09T16:04:06Z AddLocal(15.235.26.150:8555,1)
2021-12-09T16:04:06Z Discover: IPv4 venet0:0: 15.235.26.150
2021-12-09T16:04:06Z Bound to [::]:8555
2021-12-09T16:04:06Z Bound to 0.0.0.0:8555
2021-12-09T16:04:06Z init message: Loading P2P addresses...
2021-12-09T16:04:06Z UpdateTip: new best=bac805ee00696df398aed3338403c7bfea2822111bfcb18867079c12bc2ab726 height=1430638 version=0x20000000 log2_work=85.02532 tx=5920968 date='2021-12-07T14:44:53Z' progress=0.994508 cache=0.0MiB(71txo)
2021-12-09T16:04:06Z Loaded 36970 addresses from peers.dat  108ms
2021-12-09T16:04:06Z init message: Starting network threads...
2021-12-09T16:04:06Z net thread start
2021-12-09T16:04:06Z addcon thread start
2021-12-09T16:04:06Z opencon thread start
2021-12-09T16:04:06Z dnsseed thread start
2021-12-09T16:04:06Z init message: Done loading
2021-12-09T16:04:06Z msghand thread start
2021-12-09T16:04:17Z Loading addresses from DNS seeds (could take a while)
2021-12-09T16:04:17Z 0 addresses found from DNS seeds
2021-12-09T16:04:17Z dnsseed thread exit
2021-12-09T16:04:22Z New outbound peer connected: version: 70022, blocks=1435504, peer=0
2021-12-09T16:04:22Z New outbound peer connected: version: 70022, blocks=1435504, peer=1
2021-12-09T16:04:24Z Synchronizing blockheaders, height: 1432638 (~99.80%)
2021-12-09T16:04:24Z New outbound peer connected: version: 70022, blocks=1435504, peer=2
2021-12-09T16:04:25Z Synchronizing blockheaders, height: 1434638 (~99.93%)

2021-12-09T16:06:14Z DeFi Blockchain version v2.2.1.0-release (release build)
2021-12-09T16:06:14Z InitParameterInteraction: parameter interaction: -blocksonly=1 -> setting -whitelistrelay=0
2021-12-09T16:06:14Z Assuming ancestors of block 9b257cb88630e422902ef2b17a3627ae2f786a5923df9c3bda4226f9551b1ea8 have valid signatures.
2021-12-09T16:06:14Z Setting nMinimumChainWork=000000000000000000000000000000000000000000003f2949bfe4efc275390c
2021-12-09T16:06:14Z Prune configured to target 2048 MiB on disk for block and undo files.
2021-12-09T16:06:14Z ParameterInteraction: parameter interaction: -blocksonly=1 -> setting -walletbroadcast=0
2021-12-09T16:06:14Z Using the 'sse4(1way),sse41(4way),avx2(8way)' SHA256 implementation
2021-12-09T16:06:14Z Using RdSeed as additional entropy source
2021-12-09T16:06:14Z Using RdRand as an additional entropy source
2021-12-09T16:06:14Z Default data directory /root/.defi
2021-12-09T16:06:14Z Using data directory /home/DFI/data
2021-12-09T16:06:14Z Config file: /home/DFI/data/defi.conf
2021-12-09T16:06:14Z Using at most 13 automatic connections (1024 file descriptors available)
2021-12-09T16:06:14Z Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elements
2021-12-09T16:06:14Z Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements
2021-12-09T16:06:14Z Using 4 threads for script verification
2021-12-09T16:06:14Z scheduler thread start
2021-12-09T16:06:14Z libevent: getaddrinfo: address family for nodename not supported
2021-12-09T16:06:14Z Binding RPC on address ::1 port 8554 failed.
2021-12-09T16:06:14Z HTTP: creating work queue of depth 16
2021-12-09T16:06:14Z Config options rpcuser and rpcpassword will soon be deprecated. Locally-run instances may remove rpcuser to use cookie-based auth, or may be replaced with rpcauth. Please see share/rpcauth for rpcauth auth generation.
2021-12-09T16:06:14Z HTTP: starting 5 worker threads
2021-12-09T16:06:14Z Using wallet directory /home/DFI/data
2021-12-09T16:06:14Z init message: Verifying wallet(s)...
2021-12-09T16:06:14Z Using BerkeleyDB version Berkeley DB 4.8.30: (April  9, 2010)
2021-12-09T16:06:14Z Using wallet /home/DFI/data
2021-12-09T16:06:14Z BerkeleyEnvironment::Open: LogDir=/home/DFI/data/database ErrorFile=/home/DFI/data/db.log
2021-12-09T16:06:14Z init message: Loading banlist...
2021-12-09T16:06:14Z Cache configuration:
2021-12-09T16:06:14Z * Using 2.0 MiB for block index database
2021-12-09T16:06:14Z * Using 8.0 MiB for chain state database
2021-12-09T16:06:14Z * Using 440.0 MiB for in-memory UTXO set (plus up to 286.1 MiB of unused mempool space)
2021-12-09T16:06:14Z init message: Loading block index...
2021-12-09T16:06:14Z Opening LevelDB in /home/DFI/data/blocks/index
2021-12-09T16:06:15Z Opened LevelDB successfully
2021-12-09T16:06:15Z Using obfuscation key for /home/DFI/data/blocks/index: 0000000000000000
2021-12-09T16:06:23Z LoadBlockIndexDB: last block file = 16
2021-12-09T16:06:23Z LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=9538, size=101038293, heights=1421367...1430639, time=2021-12-04...2021-12-07)
2021-12-09T16:06:23Z Checking all blk files are present...
2021-12-09T16:06:23Z LoadBlockIndexDB(): Block files have previously been pruned
2021-12-09T16:06:23Z Opening LevelDB in /home/DFI/data/chainstate
2021-12-09T16:06:23Z Opened LevelDB successfully
2021-12-09T16:06:23Z Using obfuscation key for /home/DFI/data/chainstate: e27d19a3c8810476
2021-12-09T16:06:23Z Opening LevelDB in /home/DFI/data/enhancedcs
2021-12-09T16:06:24Z Opened LevelDB successfully
2021-12-09T16:06:24Z Using obfuscation key for /home/DFI/data/enhancedcs: 0000000000000000
2021-12-09T16:06:24Z Opening LevelDB in /home/DFI/data/history
2021-12-09T16:06:24Z Opened LevelDB successfully
2021-12-09T16:06:24Z Using obfuscation key for /home/DFI/data/history: 0000000000000000
2021-12-09T16:06:24Z Opening LevelDB in /home/DFI/data/burn
2021-12-09T16:06:24Z Opened LevelDB successfully
2021-12-09T16:06:24Z Using obfuscation key for /home/DFI/data/burn: 0000000000000000
2021-12-09T16:06:24Z Loaded best chain: hashBestChain=57d3a5c18c69baee59a36796cabe20267d692466f760fa481076af2692091eca height=1430639 date=2021-12-07T14:45:13Z progress=0.994505
2021-12-09T16:06:24Z init message: Rewinding blocks...
2021-12-09T16:06:24Z init message: Verifying blocks...
2021-12-09T16:06:24Z Verifying last 6 blocks at level 3
2021-12-09T16:06:24Z [0%]...[16%]...[33%]...[50%]...[66%]...[83%]...[99%]...[DONE].
2021-12-09T16:06:25Z No coin database inconsistencies in last 6 blocks (412 transactions)
2021-12-09T16:06:25Z  block index           10065ms
2021-12-09T16:06:25Z init message: Loading wallet...
2021-12-09T16:06:25Z BerkeleyEnvironment::Open: LogDir=/home/DFI/data/database ErrorFile=/home/DFI/data/db.log
2021-12-09T16:06:25Z [default wallet] Wallet File Version = 169900
2021-12-09T16:06:25Z [default wallet] Keys: 0 plaintext, 4042 encrypted, 4042 w/ metadata, 4042 total. Unknown wallet records: 0
2021-12-09T16:06:25Z [default wallet] Wallet completed loading in             155ms
2021-12-09T16:06:25Z [default wallet] setKeyPool.size() = 2000
2021-12-09T16:06:25Z [default wallet] mapWallet.size() = 0
2021-12-09T16:06:25Z [default wallet] mapAddressBook.size() = 41
2021-12-09T16:06:25Z Opening LevelDB in /home/DFI/data/anchors
2021-12-09T16:06:25Z Opened LevelDB successfully
2021-12-09T16:06:25Z Using obfuscation key for /home/DFI/data/anchors: 0000000000000000
2021-12-09T16:06:25Z Opening LevelDB in /home/DFI/data/spv
2021-12-09T16:06:25Z Opened LevelDB successfully
2021-12-09T16:06:25Z Using obfuscation key for /home/DFI/data/spv: 0000000000000000
2021-12-09T16:06:25Z Unsetting NODE_NETWORK on prune mode
2021-12-09T16:06:25Z init message: Pruning blockstore...
2021-12-09T16:06:25Z block tree size = 1431076
2021-12-09T16:06:25Z nBestHeight = 1430639
2021-12-09T16:06:25Z AddLocal(15.235.26.150:8555,1)
2021-12-09T16:06:25Z Discover: IPv4 venet0:0: 15.235.26.150
2021-12-09T16:06:25Z Bound to [::]:8555
2021-12-09T16:06:25Z Bound to 0.0.0.0:8555
2021-12-09T16:06:25Z init message: Loading P2P addresses...
2021-12-09T16:06:25Z UpdateTip: new best=bac805ee00696df398aed3338403c7bfea2822111bfcb18867079c12bc2ab726 height=1430638 version=0x20000000 log2_work=85.02532 tx=5920968 date='2021-12-07T14:44:53Z' progress=0.994504 cache=0.0MiB(71txo)
2021-12-09T16:06:25Z Loaded 36970 addresses from peers.dat  105ms
2021-12-09T16:06:25Z init message: Starting network threads...
2021-12-09T16:06:25Z init message: Done loading
2021-12-09T16:06:25Z net thread start
2021-12-09T16:06:25Z dnsseed thread start
2021-12-09T16:06:25Z addcon thread start
2021-12-09T16:06:25Z opencon thread start
2021-12-09T16:06:25Z msghand thread start
2021-12-09T16:06:36Z Loading addresses from DNS seeds (could take a while)
2021-12-09T16:06:37Z 0 addresses found from DNS seeds
2021-12-09T16:06:37Z dnsseed thread exit
2021-12-09T16:06:41Z New outbound peer connected: version: 70022, blocks=1435511, peer=0
2021-12-09T16:06:41Z New outbound peer connected: version: 70022, blocks=1435511, peer=1
2021-12-09T16:06:43Z Synchronizing blockheaders, height: 1432638 (~99.79%)
2021-12-09T16:06:44Z Synchronizing blockheaders, height: 1434638 (~99.93%)

2021-12-09T17:50:37Z DeFi Blockchain version v2.2.1.0-release (release build)
2021-12-09T17:50:37Z InitParameterInteraction: parameter interaction: -blocksonly=1 -> setting -whitelistrelay=0
2021-12-09T17:50:37Z Assuming ancestors of block 9b257cb88630e422902ef2b17a3627ae2f786a5923df9c3bda4226f9551b1ea8 have valid signatures.
2021-12-09T17:50:37Z Setting nMinimumChainWork=000000000000000000000000000000000000000000003f2949bfe4efc275390c
2021-12-09T17:50:37Z Prune configured to target 2048 MiB on disk for block and undo files.
2021-12-09T17:50:37Z ParameterInteraction: parameter interaction: -blocksonly=1 -> setting -walletbroadcast=0
2021-12-09T17:50:37Z Using the 'sse4(1way),sse41(4way),avx2(8way)' SHA256 implementation
2021-12-09T17:50:37Z Using RdSeed as additional entropy source
2021-12-09T17:50:37Z Using RdRand as an additional entropy source
2021-12-09T17:50:37Z Default data directory /root/.defi
2021-12-09T17:50:37Z Using data directory /home/DFI/data
2021-12-09T17:50:37Z Config file: /home/DFI/data/defi.conf
2021-12-09T17:50:37Z Using at most 13 automatic connections (1024 file descriptors available)
2021-12-09T17:50:37Z Using 15 MiB out of 30/2 requested for signature cache, able to store 491520 elements
2021-12-09T17:50:37Z Using 15 MiB out of 30/2 requested for script execution cache, able to store 491520 elements
2021-12-09T17:50:37Z Using 4 threads for script verification
2021-12-09T17:50:37Z scheduler thread start
2021-12-09T17:50:37Z libevent: getaddrinfo: address family for nodename not supported
2021-12-09T17:50:37Z Binding RPC on address ::1 port 8554 failed.
2021-12-09T17:50:37Z HTTP: creating work queue of depth 16
2021-12-09T17:50:37Z Config options rpcuser and rpcpassword will soon be deprecated. Locally-run instances may remove rpcuser to use cookie-based auth, or may be replaced with rpcauth. Please see share/rpcauth for rpcauth auth generation.
2021-12-09T17:50:37Z HTTP: starting 5 worker threads
2021-12-09T17:50:37Z Using wallet directory /home/DFI/data
2021-12-09T17:50:37Z init message: Verifying wallet(s)...
2021-12-09T17:50:37Z Using BerkeleyDB version Berkeley DB 4.8.30: (April  9, 2010)
2021-12-09T17:50:37Z Using wallet /home/DFI/data
2021-12-09T17:50:37Z BerkeleyEnvironment::Open: LogDir=/home/DFI/data/database ErrorFile=/home/DFI/data/db.log
2021-12-09T17:50:38Z init message: Loading banlist...
2021-12-09T17:50:38Z Cache configuration:
2021-12-09T17:50:38Z * Using 2.0 MiB for block index database
2021-12-09T17:50:38Z * Using 8.0 MiB for chain state database
2021-12-09T17:50:38Z * Using 20.0 MiB for in-memory UTXO set (plus up to 286.1 MiB of unused mempool space)
2021-12-09T17:50:38Z init message: Loading block index...
2021-12-09T17:50:38Z Opening LevelDB in /home/DFI/data/blocks/index
2021-12-09T17:50:38Z Opened LevelDB successfully
2021-12-09T17:50:38Z Using obfuscation key for /home/DFI/data/blocks/index: 0000000000000000
2021-12-09T17:50:46Z LoadBlockIndexDB: last block file = 16
2021-12-09T17:50:46Z LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=9538, size=101038293, heights=1421367...1430639, time=2021-12-04...2021-12-07)
2021-12-09T17:50:46Z Checking all blk files are present...
2021-12-09T17:50:46Z LoadBlockIndexDB(): Block files have previously been pruned
2021-12-09T17:50:46Z Opening LevelDB in /home/DFI/data/chainstate
2021-12-09T17:50:46Z Opened LevelDB successfully
2021-12-09T17:50:46Z Using obfuscation key for /home/DFI/data/chainstate: e27d19a3c8810476
2021-12-09T17:50:46Z Opening LevelDB in /home/DFI/data/enhancedcs
2021-12-09T17:50:46Z Opened LevelDB successfully
2021-12-09T17:50:46Z Using obfuscation key for /home/DFI/data/enhancedcs: 0000000000000000
2021-12-09T17:50:46Z Opening LevelDB in /home/DFI/data/history
2021-12-09T17:50:47Z Opened LevelDB successfully
2021-12-09T17:50:47Z Using obfuscation key for /home/DFI/data/history: 0000000000000000
2021-12-09T17:50:47Z Opening LevelDB in /home/DFI/data/burn
2021-12-09T17:50:47Z Opened LevelDB successfully
2021-12-09T17:50:47Z Using obfuscation key for /home/DFI/data/burn: 0000000000000000
2021-12-09T17:50:47Z Loaded best chain: hashBestChain=57d3a5c18c69baee59a36796cabe20267d692466f760fa481076af2692091eca height=1430639 date=2021-12-07T14:45:13Z progress=0.994312
2021-12-09T17:50:47Z init message: Rewinding blocks...
2021-12-09T17:50:47Z init message: Verifying blocks...
2021-12-09T17:50:47Z Verifying last 6 blocks at level 3
2021-12-09T17:50:47Z [0%]...[16%]...[33%]...[50%]...[66%]...[83%]...[99%]...[DONE].
2021-12-09T17:50:47Z No coin database inconsistencies in last 6 blocks (412 transactions)
2021-12-09T17:50:47Z  block index            9800ms
2021-12-09T17:50:47Z init message: Loading wallet...
2021-12-09T17:50:47Z BerkeleyEnvironment::Open: LogDir=/home/DFI/data/database ErrorFile=/home/DFI/data/db.log
2021-12-09T17:50:47Z [default wallet] Wallet File Version = 169900
2021-12-09T17:50:47Z [default wallet] Keys: 0 plaintext, 4042 encrypted, 4042 w/ metadata, 4042 total. Unknown wallet records: 0
2021-12-09T17:50:48Z [default wallet] Wallet completed loading in             173ms
2021-12-09T17:50:48Z [default wallet] setKeyPool.size() = 2000
2021-12-09T17:50:48Z [default wallet] mapWallet.size() = 0
2021-12-09T17:50:48Z [default wallet] mapAddressBook.size() = 41
2021-12-09T17:50:48Z Opening LevelDB in /home/DFI/data/anchors
2021-12-09T17:50:48Z Opened LevelDB successfully
2021-12-09T17:50:48Z Using obfuscation key for /home/DFI/data/anchors: 0000000000000000
2021-12-09T17:50:48Z Opening LevelDB in /home/DFI/data/spv
2021-12-09T17:50:48Z Opened LevelDB successfully
2021-12-09T17:50:48Z Using obfuscation key for /home/DFI/data/spv: 0000000000000000
2021-12-09T17:50:48Z Unsetting NODE_NETWORK on prune mode
2021-12-09T17:50:48Z init message: Pruning blockstore...
2021-12-09T17:50:48Z block tree size = 1431076
2021-12-09T17:50:48Z nBestHeight = 1430639
2021-12-09T17:50:48Z AddLocal(15.235.26.150:8555,1)
2021-12-09T17:50:48Z Discover: IPv4 venet0:0: 15.235.26.150
2021-12-09T17:50:48Z Bound to [::]:8555
2021-12-09T17:50:48Z Bound to 0.0.0.0:8555
2021-12-09T17:50:48Z init message: Loading P2P addresses...
2021-12-09T17:50:48Z UpdateTip: new best=bac805ee00696df398aed3338403c7bfea2822111bfcb18867079c12bc2ab726 height=1430638 version=0x20000000 log2_work=85.02532 tx=5920968 date='2021-12-07T14:44:53Z' progress=0.994311 cache=0.0MiB(71txo)
2021-12-09T17:50:48Z Loaded 36970 addresses from peers.dat  112ms
2021-12-09T17:50:48Z init message: Starting network threads...
2021-12-09T17:50:48Z net thread start
2021-12-09T17:50:48Z dnsseed thread start
2021-12-09T17:50:48Z init message: Done loading
2021-12-09T17:50:48Z addcon thread start
2021-12-09T17:50:48Z msghand thread start
2021-12-09T17:50:48Z opencon thread start
2021-12-09T17:50:59Z Loading addresses from DNS seeds (could take a while)
2021-12-09T17:51:00Z 0 addresses found from DNS seeds
2021-12-09T17:51:00Z dnsseed thread exit
2021-12-09T17:51:05Z New outbound peer connected: version: 70022, blocks=1435727, peer=0
2021-12-09T17:51:05Z New outbound peer connected: version: 70022, blocks=1435727, peer=1
2021-12-09T17:51:06Z Synchronizing blockheaders, height: 1432638 (~99.78%)
2021-12-09T17:51:06Z New outbound peer connected: version: 70022, blocks=1435727, peer=2
2021-12-09T17:51:07Z New outbound peer connected: version: 70022, blocks=1435727, peer=3
2021-12-09T17:51:08Z Synchronizing blockheaders, height: 1434638 (~99.92%)
defichain-bot commented 2 years ago

@benzmuircroft: Thanks for opening an issue, it is currently awaiting triage.

The triage/accepted label can be added by foundation members by writing /triage accepted in a comment.

Details I am a bot created to help the [DeFiCh](https://github.com/DeFiCh) developers manage community feedback and contributions. You can check out my [manifest file](https://github.com/DeFiCh/ain/blob/master/.github/governance.yml) to understand my behavior and what I can do. If you want to use this for your project, you can check out the [DeFiCh/oss-governance-bot](https://github.com/DeFiCh/oss-governance-bot) repository.
benzmuircroft commented 2 years ago

image

Why is difi-init using 100% CPU

That's totally ridiculous!

this needs to be fixed asap

benzmuircroft commented 2 years ago

image

benzmuircroft commented 2 years ago

dead again after 4 minutes (this time using -reindex-chainstate)

benzmuircroft commented 2 years ago

trying now without walletnotify and blocknotify

benzmuircroft commented 2 years ago

It just died again!!! after 3 mins

benzmuircroft commented 2 years ago

trying without dbcache and maxsigcachesize

benzmuircroft commented 2 years ago

no it crashed again after 4 mins. This is a big server but your code hogs so much resource that it is ridiculous. How do you expect this to run? It is bad code at this point. You need to be normal and use consideration for limits. (wow)

sandrich commented 2 years ago

What sort of system are you using? What defid version? Mine runs on a raspberry pi with ease

Tasks: 172 total,   1 running, 171 sleeping,   0 stopped,   0 zombie
%Cpu(s):  1.9 us,  2.0 sy,  0.0 ni, 96.1 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
MiB Mem :   7812.0 total,    140.9 free,   2017.7 used,   5653.4 buff/cache
MiB Swap:    100.0 total,     69.7 free,     30.2 used.   5672.2 avail Mem

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
 561760 root      20   0 4544916   2.1g 528296 S   1.7  27.3 164:41.86 defi-init
sandrich commented 2 years ago

Also not sure why you specifically use all those options. Remove any option apart from the rpcuser and rpcpassword and maybe datadir.

[Asia] https://defi-snapshots.s3.ap-southeast-1.amazonaws.com/snapshot-mainnet-1435343.zip [EU] https://defi-snapshots-europe.s3.eu-central-1.amazonaws.com/snapshot-mainnet-1435343.zip [Sydney] https://defi-snapshots-sydney.s3.ap-southeast-2.amazonaws.com/snapshot-mainnet-1435343.zip [US] https://defi-snapshots-us.s3.amazonaws.com/snapshot-mainnet-1435343.zip

benzmuircroft commented 2 years ago

Ubuntu 20 --version says DeFi Blockchain Daemon version v2.2.1.0-release so I need a new version?

sandrich commented 2 years ago

Yes! We are on 2.3.1 which is a new hardfork

benzmuircroft commented 2 years ago

it would be great if the debug log or the daemon actually tells people these things