bitcoin-elixir
bitcoin-elixir copied to clipboard
'mix run' terminates without error
Changes in app
-# config :logger, :console,
-# level: :info,
-# format: "$date $time [$level] $metadata$message\n",
-# metadata: [:user_id]
+ config :logger, :console,
+ level: :debug,
+ format: "$date $time [$level] {$metadata} $message\n",
+ metadata: [:user_id]
-# config :bitcoin, :network, :bitcoin
+ config :bitcoin, :network, :testnet
-# config :bitcoin, :node, []
+ config :bitcoin, :node, []
-# config :bitcoin, :node,
-# modules: [storage_engine: Bitcoin.Node.Storage.Engine.Postgres]
+ config :bitcoin, :node,
+ modules: [storage_engine: Bitcoin.Node.Storage.Engine.Postgres]
:
I haven't changed anything thing else in app and ran mix run And this was the output
Logger set to debug
Generated bitcoin app
2017-09-07 18:58:25.925 [info] {} Starting Node subsystems
2017-09-07 18:58:25.926 [info] {} Node initialization
2017-09-07 18:58:25.926 [info] {} Starting Node subsystems
2017-09-07 18:58:25.969 [info] {} [CM] 0 peers connected
2017-09-07 18:58:25.970 [info] {} Beginning Peer Discovery Process
2017-09-07 18:58:25.970 [info] {} Starting Peer Discovery via DNS for seed testnetbitcoin.jonasschnelli.ch at domain testnet-seed.bitcoin.jonasschnelli.ch
2017-09-07 18:58:26.192 [info] {} Already up
2017-09-07 18:58:26.202 [debug] {} QUERY OK source="block" db=3.1ms
SELECT max(b0."height") FROM "block" AS b0 []
But if I run iex -S mix the app runs and logs on stdout (i.e, iex command line)
Any thoughts on whats going on? I tried setting up flag(:trap_exit) for addr, discovery, connection_manager, inventory but no callback to terminate
Frankly I always run it using "iex -S mix". I don't have a code at hand now, but perhaps you should try:
mix run --no-halt
I'll test that when I'm back. Also, glad you found the project, don't hesitate with any other questions or suggestions. I didn't have much time for it lately, but can't wait to add segwit.