GithubHelp home page GithubHelp logo

bcext / gcash Goto Github PK

View Code? Open in Web Editor NEW
23.0 23.0 8.0 14.88 MB

An alternative full node bitcoin-ABC implementation written in Go (golang)

Home Page: https://github.com/bcext/gcash/blob/master/docs/README.md

License: ISC License

Go 99.86% Shell 0.14%
bitcoin-abc bitcoin-cash fullnode

gcash's Issues

Calculate incorrect difficulty causes blockchain fork.

error log:

Rejected block 0000000000051b450faa75bb8e1ea30bc18c4b9736e765d2794259a53bc83f99 from 52.214.195.71:18333 (outbound): block difficulty of 454205337 is not the expected value of 469811417
2018-08-14 22:33:56.986 [INF] CHAN: Adding orphan block 000000000000ace65b62088822cd3cd2657e8a7917602f3f67887fb227ed8e79 with parent 0000000000051b450faa75bb8e1ea30bc18c4b9736e765d2794259a53bc83f99
2018-08-14 22:33:56.986 [INF] CHAN: Adding orphan block 00000000000c3270db4fd4618092a5c4f67c982364c9657ad265582fc31a8a17 with parent 000000000000ace65b62088822cd3cd2657e8a7917602f3f67887fb227ed8e79

it will sync a unknown block from the old node(/Bitcoin ABC:0.15.1(EB8.0)/), and reject the followings

TODO: filter the old version peer

2018-09-01 21:02:09.531 [INF] SYNC: Syncing to block height 545969 from peer 52.59.70.178:8333
2018-09-01 21:02:13.131 [INF] SYNC: New valid peer 120.76.215.99:8333 (outbound) (/Bitcoin ABC:0.17.1(EB32.0)/)
2018-09-01 21:02:23.465 [INF] SYNC: New valid peer 195.201.195.139:8333 (outbound) (/Bitcoin ABC:0.17.1(EB32.0)/)
2018-09-01 21:02:53.917 [INF] SYNC: Lost peer 52.59.70.178:8333 (outbound)
2018-09-01 21:02:53.917 [INF] SYNC: Syncing to block height 545969 from peer 195.201.195.139:8333
2018-09-01 21:03:03.117 [INF] SYNC: New valid peer 106.15.52.8:8333 (outbound) (/Bitcoin ABC:0.17.1(EB32.0)/)
2018-09-01 21:03:08.923 [WRN] PEER: Peer 96.126.122.17:8333 (outbound) no answer for 5m0s -- disconnecting
2018-09-01 21:03:08.923 [INF] SYNC: Lost peer 96.126.122.17:8333 (outbound)
2018-09-01 21:03:38.467 [INF] SYNC: Lost peer 195.201.195.139:8333 (outbound)
2018-09-01 21:03:38.467 [INF] SYNC: Syncing to block height 545969 from peer 106.15.52.8:8333
2018-09-01 21:04:14.536 [INF] SYNC: New valid peer 72.14.176.235:8333 (outbound) (/BUCash:1.3.0.1(EB32; AD12)/)
2018-09-01 21:04:26.592 [INF] SYNC: New valid peer 106.14.104.229:8333 (outbound) (/Bitcoin ABC:0.16.1(EB8.0)/)
2018-09-01 21:04:26.593 [INF] SYNC: Lost peer 106.14.104.229:8333 (outbound)
2018-09-01 21:04:33.117 [INF] SYNC: Lost peer 106.15.52.8:8333 (outbound)
2018-09-01 21:04:33.117 [INF] SYNC: Syncing to block height 545969 from peer 120.76.215.99:8333
2018-09-01 21:04:53.823 [INF] SYNC: New valid peer 47.94.38.88:8333 (outbound) (/Bitcoin ABC:0.16.1(EB8.0)/)
2018-09-01 21:05:14.363 [INF] SYNC: Lost peer 120.76.215.99:8333 (outbound)
2018-09-01 21:05:14.363 [WRN] SYNC: No sync peer candidates available
2018-09-01 21:05:25.565 [WRN] PEER: Peer 173.167.34.138:8333 (outbound) no answer for 5m0s -- disconnecting
2018-09-01 21:05:25.565 [INF] SYNC: Lost peer 173.167.34.138:8333 (outbound)
2018-09-01 21:05:58.040 [INF] SYNC: New valid peer 119.23.173.114:8333 (outbound) (/Bitcoin ABC:0.17.1(EB32.0)/)
2018-09-01 21:05:58.040 [INF] SYNC: Syncing to block height 545969 from peer 119.23.173.114:8333
2018-09-01 21:06:28.040 [INF] SYNC: Lost peer 119.23.173.114:8333 (outbound)
2018-09-01 21:06:28.040 [WRN] SYNC: No sync peer candidates available
2018-09-01 21:06:29.819 [INF] SYNC: New valid peer 107.167.80.114:8333 (outbound) (/Bitcoin ABC:0.17.2(EB32.0)/)
2018-09-01 21:06:29.819 [INF] SYNC: Syncing to block height 545969 from peer 107.167.80.114:8333
2018-09-01 21:06:46.919 [INF] SYNC: New valid peer 5.9.93.30:8333 (outbound) (/Bitcoin ABC:0.17.2(EB32.0)/)
2018-09-01 21:07:14.820 [INF] SYNC: Lost peer 107.167.80.114:8333 (outbound)
2018-09-01 21:07:14.820 [INF] SYNC: Syncing to block height 545969 from peer 5.9.93.30:8333
2018-09-01 21:07:15.698 [WRN] PEER: Peer 209.222.10.182:8333 (outbound) no answer for 5m0s -- disconnecting
2018-09-01 21:07:15.698 [INF] SYNC: Lost peer 209.222.10.182:8333 (outbound)
2018-09-01 21:07:34.944 [INF] SYNC: New valid peer 178.155.212.73:8333 (outbound) (/BUCash:1.4.0(EB32; AD12)/)
2018-09-01 21:07:46.919 [INF] SYNC: Lost peer 5.9.93.30:8333 (outbound)
2018-09-01 21:07:46.919 [INF] SYNC: Syncing to block height 545969 from peer 178.155.212.73:8333
2018-09-01 21:07:53.182 [INF] SYNC: New valid peer 119.23.173.212:8333 (outbound) (/Bitcoin ABC:0.17.1(EB32.0)/)
2018-09-01 21:08:17.634 [INF] SYNC: New valid peer 103.76.41.69:8333 (outbound) (/Classic:1.3.4(EB8)/)
2018-09-01 21:08:19.945 [INF] SYNC: Lost peer 178.155.212.73:8333 (outbound)
2018-09-01 21:08:19.945 [INF] SYNC: Syncing to block height 644543 from peer 103.76.41.69:8333
2018-09-01 21:08:39.752 [INF] SYNC: New valid peer 47.93.139.85:8333 (outbound) (/Bitcoin ABC:0.17.1(EB32.0)/)
2018-09-01 21:08:59.569 [INF] SYNC: New valid peer 106.14.105.13:8333 (outbound) (/Bitcoin ABC:0.17.1(EB32.0)/)
2018-09-01 21:09:02.634 [INF] SYNC: Lost peer 103.76.41.69:8333 (outbound)
2018-09-01 21:09:02.634 [INF] SYNC: Syncing to block height 545969 from peer 47.93.139.85:8333
2018-09-01 21:09:39.753 [INF] SYNC: Lost peer 47.93.139.85:8333 (outbound)
2018-09-01 21:09:39.753 [INF] SYNC: Syncing to block height 545969 from peer 119.23.173.212:8333
2018-09-01 21:10:23.183 [INF] SYNC: Lost peer 119.23.173.212:8333 (outbound)
2018-09-01 21:10:23.183 [INF] SYNC: Syncing to block height 545969 from peer 106.14.105.13:8333
2018-09-01 21:10:59.570 [INF] SYNC: Lost peer 106.14.105.13:8333 (outbound)
2018-09-01 21:10:59.570 [WRN] SYNC: No sync peer candidates available
2018-09-01 21:11:37.351 [WRN] PEER: Peer 72.14.176.235:8333 (outbound) no answer for 5m0s -- disconnecting
2018-09-01 21:11:37.351 [INF] SYNC: Lost peer 72.14.176.235:8333 (outbound)
2018-09-01 21:13:58.470 [WRN] PEER: Peer 47.94.38.88:8333 (outbound) no answer for 5m0s -- disconnecting
2018-09-01 21:13:58.471 [INF] SYNC: Lost peer 47.94.38.88:8333 (outbound)
2018-09-01 21:19:38.544 [INF] SYNC: New valid peer 47.94.57.140:8333 (outbound) (/Bitcoin ABC:0.17.1(EB32.0)/)
2018-09-01 21:19:38.544 [INF] SYNC: Syncing to block height 545970 from peer 47.94.57.140:8333
2018-09-01 21:19:39.785 [INF] SYNC: New valid peer 106.14.104.229:8333 (outbound) (/Bitcoin ABC:0.16.1(EB8.0)/)
2018-09-01 21:19:40.210 [INF] SYNC: New valid peer 47.254.129.76:8333 (outbound) (/BUCash:1.3.0.1(EB32; AD12)/)
2018-09-01 21:19:40.969 [INF] SYNC: Lost peer 106.14.104.229:8333 (outbound)
2018-09-01 21:19:42.277 [INF] SYNC: New valid peer 47.89.180.57:8333 (outbound) (/BUCash:1.4.0(EB32; AD12)/)
2018-09-01 21:19:55.348 [INF] SYNC: Processed 2 blocks in the last 27m30.47s (63980 transactions, height 545969, 2018-09-01 20:58:41 +0800 CST)
2018-09-01 21:19:55.350 [INF] SYNC: New valid peer 60.205.93.24:8333 (outbound) (/Bitcoin ABC:0.15.1(EB8.0)/)
2018-09-01 21:19:55.350 [INF] SYNC: New valid peer 72.5.167.41:8333 (outbound) (/Bitcoin ABC:0.16.0(EB8.0)/)
2018-09-01 21:19:56.410 [INF] CHAN: Adding orphan block 00000000000002f488ec8fdc169c2362787b5f6ac03d7af65f2b751d0cbe9715 with parent 000000000000039d90f8ea7144bcdbee74646d6b2c547d163949ac337bbcfb62
2018-09-01 21:19:59.416 [INF] CHAN: Adding orphan block 000000000000022f19504b0ee3ed832cfbf1e4e5545b6bde1aa6e4247739f8e9 with parent 00000000000002f488ec8fdc169c2362787b5f6ac03d7af65f2b751d0cbe9715
2018-09-01 21:20:07.453 [INF] SYNC: Rejected block 000000000000000001a403942feef90acb0e2387ed2e31e91a6f63a698c813c8 from 60.205.93.24:8333 (outbound): block 000000000000000001a403942feef90acb0e2387ed2e31e91a6f63a698c813c8 has timestamp 2017-11-15 12:28:51 +0800 CST before last checkpoint timestamp 2018-05-16 02:49:46 +0800 CST
2018-09-01 21:20:09.121 [INF] SYNC: Rejected block 0000000000000000011226413b92d0de2521774b483318f5cbfe28d11b57aef6 from 60.205.93.24:8333 (outbound): block 0000000000000000011226413b92d0de2521774b483318f5cbfe28d11b57aef6 has timestamp 2017-11-16 01:53:22 +0800 CST before last checkpoint timestamp 2018-05-16 02:49:46 +0800 CST
2018-09-01 21:20:09.777 [INF] SYNC: Rejected block 0000000000000000016ce62be1f815b22efcbb13a280de9263be470b15f4b11f from 60.205.93.24:8333 (outbound): block 0000000000000000016ce62be1f815b22efcbb13a280de9263be470b15f4b11f has timestamp 2017-11-16 12:27:40 +0800 CST before last checkpoint timestamp 2018-05-16 02:49:46 +0800 CST
2018-09-01 21:20:09.783 [INF] SYNC: Rejected block 000000000000000001b602ac266fb331578ee31b98c10fb1c3421ec4f96da0ee from 60.205.93.24:8333 (outbound): block 000000000000000001b602ac266fb331578ee31b98c10fb1c3421ec4f96da0ee has timestamp 2017-11-16 12:39:39 +0800 CST before last checkpoint timestamp 2018-05-16 02:49:46 +0800 CST
2018-09-01 21:20:09.795 [INF] SYNC: Rejected block 0000000000000000016986800bbe226aaa0b86bae7b368038543fbafabb3cbd1 from 60.205.93.24:8333 (outbound): block 0000000000000000016986800bbe226aaa0b86bae7b368038543fbafabb3cbd1 has timestamp 2017-11-16 13:31:24 +0800 CST before last checkpoint timestamp 2018-05-16 02:49:46 +0800 CST
2018-09-01 21:20:09.856 [INF] SYNC: Rejected block 000000000000000000a5c86e0e0bc6abe3ab34443ba3ce2abe36099ade961040 from 60.205.93.24:8333 (outbound): block 000000000000000000a5c86e0e0bc6abe3ab34443ba3ce2abe36099ade961040 has timestamp 2017-11-16 16:49:51 +0800 CST before last checkpoint timestamp 2018-05-16 02:49:46 +0800 CST
2018-09-01 21:20:10.107 [INF] SYNC: Rejected block 000000000000000000e56c9596b72a1afdecd29762ca0e75ea567696a79aebe9 from 60.205.93.24:8333 (outbound): block 000000000000000000e56c9596b72a1afdecd29762ca0e75ea567696a79aebe9 has timestamp 2017-11-16 21:13:17 +0800 CST before last checkpoint timestamp 2018-05-16 02:49:46 +0800 CST
2018-09-01 21:20:10.107 [INF] SYNC: New valid peer 47.95.32.170:8333 (outbound) (/Bitcoin ABC:0.17.1(EB32.0)/)
2018-09-01 21:20:10.115 [INF] SYNC: Rejected block 0000000000000000000fdfc1041e943e6adfa28a12d97a6720aaa69f19c76435 from 60.205.93.24:8333 (outbound): block 0000000000000000000fdfc1041e943e6adfa28a12d97a6720aaa69f19c76435 has timestamp 2017-11-18 20:11:47 +0800 CST before last checkpoint timestamp 2018-05-16 02:49:46 +0800 CST

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.