comboy / bitcoin-elixir Goto Github PK
View Code? Open in Web Editor NEWBitcoin tools and full node implementation in Elixir.
License: Other
Bitcoin tools and full node implementation in Elixir.
License: Other
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
I have the following issue when trying to start the node using :testnet
network
10:36:33.653 [info] Storing block 542 {{:error, {:sig_script, "c5d4b73af6eed28798473b05d2b227edd4f285069629843e899b52c2d1c165b7", 10}}, 0} | 0000000083c1f82cf72c6724f7a31732
5806384b06408bce7a4327f418dfd5ad| vt: 0.04s st: 0.0s tx: 4
10:36:33.657 [error] GenServer Bitcoin.Node.Inventory terminating
** (CaseClauseError) no case clause matching: {{:error, {:sig_script, "c5d4b73af6eed28798473b05d2b227edd4f285069629843e899b52c2d1c165b7", 10}}, 0}
(bitcoin) lib/bitcoin/node/inventory.ex:136: Bitcoin.Node.Inventory.handle_cast/2
Was trying to debug this but I'm afraid my bitcoin foo is still to low to tackle this issue. Any help would be much appreciated.
The app is configured to use postgres as a Storage
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.