Coder Social home page Coder Social logo

bitcoin-elixir's People

Contributors

comboy avatar justinlynn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bitcoin-elixir's Issues

'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

When using :testnet network the app crashes after trying to store block 542

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.