Pages:
Author

Topic: ANN: Announcing code availability of the bitsofproof supernode - page 3. (Read 35116 times)

hero member
Activity: 836
Merit: 1021
bits of proof
Yes, that is also rather strange. The blocks should be persisted as received in the data directory. I am reluctant to believe that it just does not work as I have several instances running fine since months in production, but will do a fresh bootstrap in the next days to see how it should look like at the beginning.

Maybe CentOS related problem. I use ubuntu or OS X on all machines.
newbie
Activity: 6
Merit: 0
Thank you Grau,
but the network should be ok as bitcoind runs correctly and what about leveldb data, should the blocks be persisted as they are received?
This should write data to leveldb files, isn't it?
hero member
Activity: 836
Merit: 1021
bits of proof
Seems like peers were suddenly no longer reachable. Hard to tell, but looks like some general networking problem. In case you run on the production network I would suggest you run it as a slave behind satoshi.
newbie
Activity: 6
Merit: 0
Hi Grau,
I'm running BOP Server against production network using LevelDB on a CentOS 6 server, this is the command line

java -server -Xmx1g -jar bitsofproof-server-1.3.7-SNAPSHOT.jar production leveldb BCSAPI activemq

When I run the BOP Server the data directory and all the data files are created, this is the data directory content

drwxr-xr-x. 2 root root  4096 Dec 28 17:59 .
drwxr-xr-x. 7 root root  4096 Dec 28 17:47 ..
-rw-r--r--. 1 root root     0 Dec 28 17:47 000003.log
-rw-r--r--. 1 root root    16 Dec 28 17:47 CURRENT
-rw-r--r--. 1 root root     0 Dec 28 17:47 LOCK
-rw-r--r--. 1 root root 65536 Dec 28 17:47 MANIFEST-000002

but files are never updated so seems like the downloaded blocks do not get stored.
After a while I stop the Bop Server but the data file are not changed, this is a summary of bop-server.log

2013-12-28 17:47:18,604 [INFO] Main main bitsofproof supernode (c) 2013 bits of proof zrt.
2013-12-28 17:47:18,921 [INFO] Main main Loading profile: production
2013-12-28 17:47:18,922 [INFO] Main main Loading profile: leveldb
2013-12-28 17:47:18,922 [INFO] Main main Loading profile: BCSAPI
2013-12-28 17:47:18,922 [INFO] Main main Loading profile: activemq
2013-12-28 17:47:20,890 [DEBUG] LvlDiskStore main                                Compactions
Level  Files Size(MB) Time(sec) Read(MB) Write(MB)
--------------------------------------------------

2013-12-28 17:47:20,901 [INFO] CachedBlockStore main Reset block store
2013-12-28 17:47:20,944 [DEBUG] Supernode main Caching ...
2013-12-28 17:47:20,952 [DEBUG] Supernode main Starting network ...
2013-12-28 17:47:37,066 [INFO] BitcoinPeer Peer-thread-2 Connection to '/Satoshi:0.8.3/' [70001] at dnsseed.bluematt.me/71.236.191.178:8333 Open connections: 1
2013-12-28 17:47:37,610 [INFO] BitcoinPeer Peer-thread-6 Connection to '/Satoshi:0.8.99/' [70001] at bitseed.xf2.org/62.75.216.13:8333 Open connections: 2
2013-12-28 17:47:38,474 [DEBUG] TxHandler Peer-thread-15 REJECTING transaction 7fe8ccdbfc76ca8ede525460fb394aad64c7ed5f95e7a40b091f5bc4b5732280
2013-12-28 17:47:38,528 [DEBUG] ChainLoader Peer-thread-0 received block 00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048 from dnsseed.bluematt.me/71.236.191.178:8333
2013-12-28 17:47:38,537 [DEBUG] CachedBlockStore Peer-thread-0 stored block 1 00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048
2013-12-28 17:47:38,537 [DEBUG] TxHandler Peer-thread-0 Removing 0 blocks
2013-12-28 17:47:38,537 [DEBUG] TxHandler Peer-thread-0 Pool size: 0
2013-12-28 17:47:38,537 [DEBUG] TxHandler Peer-thread-0 Adding 1 blocks
2013-12-28 17:47:38,537 [DEBUG] TxHandler Peer-thread-0 First seen in block: 0e3e2357e806b6cdb1f70b54c3a3a17b6714ee1f0e68bebb44a74b1efd512098
2013-12-28 17:47:38,537 [DEBUG] TxHandler Peer-thread-0 Pool size: 0
2013-12-28 17:47:38,568 [INFO] BitcoinPeer Peer-thread-1 Connection to '/Satoshi:0.8.5/' [70001] at dnsseed.bluematt.me/77.249.29.66:8333 Open connections: 4
2013-12-28 17:47:38,616 [DEBUG] ChainLoader Peer-thread-0 received block 000000006a625f06636b8bb6ac7b960a8d03705d1ace08b1a19da3fdcc99ddbd from dnsseed.bluematt.me/71.236.191.178:8333
2013-12-28 17:47:38,618 [DEBUG] CachedBlockStore Peer-thread-0 stored block 2 000000006a625f06636b8bb6ac7b960a8d03705d1ace08b1a19da3fdcc99ddbd
2013-12-28 17:47:38,618 [DEBUG] TxHandler Peer-thread-0 Removing 0 blocks
2013-12-28 17:47:38,618 [DEBUG] TxHandler Peer-thread-0 Pool size: 0
2013-12-28 17:47:38,618 [DEBUG] TxHandler Peer-thread-0 Adding 1 blocks
2013-12-28 17:47:38,618 [DEBUG] TxHandler Peer-thread-0 First seen in block: 9b0fc92260312ce44e74ef369f5c66bbb85848f2eddd5a7a1cde251e54ccfdd5
2013-12-28 17:47:38,618 [DEBUG] TxHandler Peer-thread-0 Pool size: 0
2013-12-28 17:47:38,626 [DEBUG] ChainLoader Peer-thread-0 received block 0000000082b5015589a3fdf2d4baff403e6f0be035a5d9742c1cae6295464449 from dnsseed.bluematt.me/71.236.191.178:8333
2013-12-28 17:47:38,628 [DEBUG] CachedBlockStore Peer-thread-0 stored block 3 0000000082b5015589a3fdf2d4baff403e6f0be035a5d9742c1cae6295464449
2013-12-28 17:47:38,628 [DEBUG] TxHandler Peer-thread-0 Removing 0 blocks
2013-12-28 17:47:38,628 [DEBUG] TxHandler Peer-thread-0 Pool size: 0
2013-12-28 17:47:38,628 [DEBUG] TxHandler Peer-thread-0 Adding 1 blocks
2013-12-28 17:47:38,628 [DEBUG] TxHandler Peer-thread-0 First seen in block: 999e1c837c76a1b7fbb7e57baf87b309960f5ffefbf2a9b95dd890602272f644
2013-12-28 17:47:38,628 [DEBUG] TxHandler Peer-thread-0 Pool size: 0
2013-12-28 17:47:38,635 [DEBUG] ChainLoader Peer-thread-0 received block 000000004ebadb55ee9096c9a2f8880e09da59c0d68b1c228da88e48844a1485 from dnsseed.bluematt.me/71.236.191.178:8333
2013-12-28 17:47:38,636 [DEBUG] CachedBlockStore Peer-thread-0 stored block 4 000000004ebadb55ee9096c9a2f8880e09da59c0d68b1c228da88e48844a1485
2013-12-28 17:47:38,637 [DEBUG] TxHandler Peer-thread-0 Removing 0 blocks
2013-12-28 17:47:38,637 [DEBUG] TxHandler Peer-thread-0 Pool size: 0
2013-12-28 17:47:38,637 [DEBUG] TxHandler Peer-thread-0 Adding 1 blocks

......

2013-12-28 17:47:40,964 [DEBUG] ChainLoader Peer-thread-12 received block 00000000b98fcbc3ffa5735bca2dddb8ae01b75c01a1f055ba48b515eebef020 from bitseed.xf2.org/62.75.216.13:8333
2013-12-28 17:47:40,964 [DEBUG] ChainLoader Peer-thread-7 received block 000000003b3b42e8af3178e581f468b6d83e5acd419b00656d3d5c22b82ff29c from dnsseed.bluematt.me/85.17.88.56:8333
2013-12-28 17:47:40,965 [DEBUG] ChainLoader Peer-thread-12 received block 000000002689f3021912d78bc8d5b046d2828a75dc695905b8743222b9907a8d from bitseed.xf2.org/62.75.216.13:8333
2013-12-28 17:47:40,965 [DEBUG] ChainLoader Peer-thread-7 received block 000000004f2c63cf028a37e7fc793a47ace7c27d44aac2a82fd9d90dbfc1750d from dnsseed.bluematt.me/85.17.88.56:8333
2013-12-28 17:47:40,965 [DEBUG] ChainLoader Peer-thread-12 received block 00000000417404b256f7fb76d9b6ec6a8077536369d120ac8ad1aa246b6e9da1 from bitseed.xf2.org/62.75.216.13:8333
2013-12-28 17:47:40,965 [DEBUG] ChainLoader Peer-thread-7 received block 000000005cd735eccf4aefbc7427efee70ee4adc886be67cc68f6f925c9c7e41 from dnsseed.bluematt.me/85.17.88.56:8333
2013-12-28 17:47:40,965 [DEBUG] ChainLoader Peer-thread-12 received block 00000000292b0f6a658cfab5e4d69a7d5753a6fef74ced4ef82e7026042a97de from bitseed.xf2.org/62.75.216.13:8333
2013-12-28 17:47:40,965 [DEBUG] ChainLoader Peer-thread-7 received block 00000000ecc3ba4a80a6d61ea3abc22a8fddf11d1f8019b7fbbde92e2b4dd4a8 from dnsseed.bluematt.me/85.17.88.56:8333
2013-12-28 17:47:40,966 [DEBUG] ChainLoader Peer-thread-12 received block 0000000055f9514359114a754ab74471f39a5fe6034ca6d05ec14e2d03dbd626 from bitseed.xf2.org/62.75.216.13:8333
2013-12-28 17:47:40,966 [DEBUG] ChainLoader Peer-thread-7 received block 000000002436274e351576ee5c9d6a96ce64072d02713d20c32c36bf70f9fbb5 from dnsseed.bluematt.me/85.17.88.56:8333
2013-12-28 17:47:40,966 [DEBUG] ChainLoader Peer-thread-12 received block 00000000a99927e355bb8699c583c2214cc796c42aa28b82337979b60ef3af1d from bitseed.xf2.org/62.75.216.13:8333
2013-12-28 17:47:40,966 [DEBUG] ChainLoader Peer-thread-7 received block 0000000011e36edf0c01ecffe36ac4be9f4674c5438d5bd02f47a59c798f663c from dnsseed.bluematt.me/85.17.88.56:8333
2013-12-28 17:47:40,967 [DEBUG] ChainLoader Peer-thread-12 received block 00000000d3ebca0f1cf140987959ba9231e9da43f3f76aed02d0cfe9d88b71d7 from bitseed.xf2.org/62.75.216.13:8333
2013-12-28 17:47:40,967 [DEBUG] ChainLoader Peer-thread-7 received block 00000000c3a81d9932edc9a2e3358e631b094d9628178bbf6089b12f75b08815 from dnsseed.bluematt.me/85.17.88.56:8333
2013-12-28 17:47:40,967 [DEBUG] ChainLoader Peer-thread-12 received block 000000002b5e03ee6029c1f5703b7baaf097630ca55f91d93ddd412eb0d054e5 from bitseed.xf2.org/62.75.216.13:8333
2013-12-28 17:47:40,967 [DEBUG] ChainLoader Peer-thread-7 received block 0000000074e77a1e561ab5247bec8a977977d3dde3d70a74fabf0adc3d6bf4ac from dnsseed.bluematt.me/85.17.88.56:8333
2013-12-28 17:47:40,967 [DEBUG] ChainLoader Peer-thread-12 received block 000000008e1bd9998d126a037a31e20c2be174f6c760ba32d1cfe2498f570cc7 from bitseed.xf2.org/62.75.216.13:8333
2013-12-28 17:47:40,967 [DEBUG] ChainLoader Peer-thread-7 received block 00000000dd9588e8b12025e5257267abe0e9134d493ab3b449a47db8d22567d2 from dnsseed.bluematt.me/85.17.88.56:8333
2013-12-28 17:47:40,968 [DEBUG] ChainLoader Peer-thread-12 received block 00000000563679ac0304f948a6a515b06077b3b6ef118036d9dbe4ef32122597 from bitseed.xf2.org/62.75.216.13:8333
2013-12-28 17:47:40,968 [DEBUG] ChainLoader Peer-thread-7 received block 0000000084935be8a5b06525aea383d2988df6003963222f5adc5ddf5951e7fd from dnsseed.bluematt.me/85.17.88.56:8333
2013-12-28 17:47:40,968 [DEBUG] ChainLoader Peer-thread-12 received block 00000000f977441badb36a6bbac2057f7c6464dea83fabde00636803ae536534 from bitseed.xf2.org/62.75.216.13:8333
2013-12-28 17:47:40,968 [DEBUG] ChainLoader Peer-thread-7 received block 000000000568dd391b3261d51ad4fcb68db5539200a15acc5bd6ece8b218601b from dnsseed.bluematt.me/85.17.88.56:8333
2013-12-28 17:47:40,968 [DEBUG] ChainLoader Peer-thread-12 received block 00000000180b5bdbeb61d547a04adf658f7c9be695cd2c5d8fdf3e27e022d833 from bitseed.xf2.org/62.75.216.13:8333
2013-12-28 17:47:40,969 [DEBUG] ChainLoader Peer-thread-7 received block 000000005b30f48ef450de8ebdb8829a931e8cd86e2f11f48f381c61c845379b from dnsseed.bluematt.me/85.17.88.56:8333
2013-12-28 17:47:40,969 [DEBUG] ChainLoader Peer-thread-12 received block 00000000915f7a477e3df905e1625c9e59ce63e6c26fa349f427b9cc314a4a76 from bitseed.xf2.org/62.75.216.13:8333
2013-12-28 17:47:40,969 [DEBUG] ChainLoader Peer-thread-7 received block 00000000d3d4c3b9014bd51bd891d1161d7ead2dbe8597561eb17b1b9c6465c3 from dnsseed.bluematt.me/85.17.88.56:8333
2013-12-28 17:47:40,969 [DEBUG] ChainLoader Peer-thread-12 received block 00000000219c44b7a974528cfe22f831631ba20a4bd8e7a238918d1d2f13aec3 from bitseed.xf2.org/62.75.216.13:8333
2013-12-28 17:47:40,969 [DEBUG] ChainLoader Peer-thread-12 received block 0000000046ff6c4f9a7224aa331c407c7e37f49434571307d6fca58695bcba38 from dnsseed.bluematt.me/85.17.88.56:8333
2013-12-28 17:47:40,969 [DEBUG] ChainLoader Peer-thread-1 received block 000000006aad240f2485670793fcc62eb5006a42aba22e32b6918d710a2583b3 from bitseed.xf2.org/62.75.216.13:8333
2013-12-28 17:47:40,970 [DEBUG] ChainLoader Peer-thread-12 received block 000000000d0d23516c5efd3af4eb951603bb30b2c93884b522a318b30e918ee7 from dnsseed.bluematt.me/85.17.88.56:8333
2013-12-28 17:47:40,970 [DEBUG] ChainLoader Peer-thread-1 received block 00000000de071e247a1f44be9908714f0cc8282e2ddcdf7d2c4b3dbca9a624d3 from bitseed.xf2.org/62.75.216.13:8333
2013-12-28 17:47:40,970 [DEBUG] ChainLoader Peer-thread-12 received block 00000000fa041c4905c4eca1cc0c75204c2cd118da3ffd129c41840152038d20 from dnsseed.bluematt.me/85.17.88.56:8333
2013-12-28 17:47:40,970 [DEBUG] ChainLoader Peer-thread-1 received block 00000000ef6644f79c0e3363c0359de10bc485d9d032af7c8097b325b54a2497 from bitseed.xf2.org/62.75.216.13:8333
2013-12-28 17:47:40,970 [DEBUG] ChainLoader Peer-thread-12 received block 00000000b9d2de60c26ad0ff1289bb6c97529cac7c5a37571900a0e6be77dca8 from dnsseed.bluematt.me/85.17.88.56:8333
2013-12-28 17:47:40,970 [DEBUG] ChainLoader Peer-thread-1 received block 0000000067329a9d48d204813cc35e8b89a8c476f292d92f58691b9535b8da63 from bitseed.xf2.org/62.75.216.13:8333
2013-12-28 17:47:40,971 [DEBUG] ChainLoader Peer-thread-12 received block 00000000b96305605f1eb5ab800024ff3fa260deedf6005e1e3987daa11d3935 from dnsseed.bluematt.me/85.17.88.56:8333
2013-12-28 17:47:40,971 [DEBUG] ChainLoader Peer-thread-1 received block 00000000ae07b04e64e658c2dd85bfab0da646352a42037940dd0d18ea6ed8a4 from bitseed.xf2.org/62.75.216.13:8333
2013-12-28 17:47:40,971 [DEBUG] ChainLoader Peer-thread-12 received block 0000000090e31ebfb5734092b91f0d8b1dc5f40cd7ff9c18b3f0e999278c7c91 from dnsseed.bluematt.me/71.236.191.178:8333
2013-12-28 17:47:40,971 [DEBUG] ChainLoader Peer-thread-2 received block 000000008ba08cce0c4845673a55800603a6e24be4c9977bc977fbb359db0078 from dnsseed.bluematt.me/85.17.88.56:8333
2013-12-28 17:47:40,972 [DEBUG] CachedBlockStore Peer-thread-12 stored block 352 0000000090e31ebfb5734092b91f0d8b1dc5f40cd7ff9c18b3f0e999278c7c91
2013-12-28 17:47:40,972 [DEBUG] TxHandler Peer-thread-12 Removing 0 blocks
2013-12-28 17:47:40,972 [DEBUG] TxHandler Peer-thread-12 Pool size: 0
2013-12-28 17:47:40,972 [DEBUG] TxHandler Peer-thread-12 Adding 1 blocks
2013-12-28 17:47:40,972 [DEBUG] TxHandler Peer-thread-12 First seen in block: 4c4c29d07679bfdad5f037ba429419d206a656782d5aa88ecd728a0033ac1a67
2013-12-28 17:47:40,972 [DEBUG] TxHandler Peer-thread-12 Pool size: 0
2013-12-28 17:47:40,976 [DEBUG] ChainLoader Peer-thread-12 received block 00000000dec5e5fbf851495db241e624012d675bbef96ec6dab5cdc91fa3b53b from dnsseed.bluematt.me/71.236.191.178:8333
2013-12-28 17:47:40,976 [DEBUG] ChainLoader Peer-thread-1 received block 00000000158b0585927acbb1fec533a7883045dabff45a3ee95fb9750a514344 from bitseed.xf2.org/62.75.216.13:8333
2013-12-28 17:47:40,977 [DEBUG] CachedBlockStore Peer-thread-12 stored block 353 00000000dec5e5fbf851495db241e624012d675bbef96ec6dab5cdc91fa3b53b
2013-12-28 17:47:40,977 [DEBUG] TxHandler Peer-thread-12 Removing 0 blocks
2013-12-28 17:47:40,977 [DEBUG] TxHandler Peer-thread-12 Pool size: 0
2013-12-28 17:47:40,977 [DEBUG] TxHandler Peer-thread-12 Adding 1 blocks


......

2013-12-28 17:47:52,113 [DEBUG] CachedBlockStore Peer-thread-11 stored block 1870 0000000039d64ce3bb6f073707a6ba831e6e2fbc7d9fae40709d162012b1253e
2013-12-28 17:47:52,113 [DEBUG] TxHandler Peer-thread-11 Removing 0 blocks
2013-12-28 17:47:52,113 [DEBUG] TxHandler Peer-thread-11 Pool size: 0
2013-12-28 17:47:52,113 [DEBUG] TxHandler Peer-thread-11 Adding 1 blocks
2013-12-28 17:47:52,113 [DEBUG] TxHandler Peer-thread-11 First seen in block: 5b7ab6b51cfaa24cfb92ea9a30bc6e539a684786a6ae71e72d9d897ed8e95657
2013-12-28 17:47:52,113 [DEBUG] TxHandler Peer-thread-11 Pool size: 0
2013-12-28 17:47:52,115 [DEBUG] CachedBlockStore Peer-thread-11 stored block 1871 000000009b258aba4631bcd3e763667edd28ca4960da6cfedf98f42e2631314c
2013-12-28 17:47:52,115 [DEBUG] TxHandler Peer-thread-11 Removing 0 blocks
2013-12-28 17:47:52,115 [DEBUG] TxHandler Peer-thread-11 Pool size: 0
2013-12-28 17:47:52,115 [DEBUG] TxHandler Peer-thread-11 Adding 1 blocks
2013-12-28 17:47:52,115 [DEBUG] TxHandler Peer-thread-11 First seen in block: 7c3d29ebc40581a5f6ac6891e3a3c83c8195c09aa9ce1f3123bbcce5b71013e0
2013-12-28 17:47:52,115 [DEBUG] TxHandler Peer-thread-11 Pool size: 0
2013-12-28 17:47:52,118 [DEBUG] CachedBlockStore Peer-thread-11 stored block 1872 00000000c2dfe3968ef3133e68e9d56fee1eee7409ea6986aafb5bd003f38478
2013-12-28 17:47:52,118 [DEBUG] TxHandler Peer-thread-11 Removing 0 blocks
2013-12-28 17:47:52,118 [DEBUG] TxHandler Peer-thread-11 Pool size: 0
2013-12-28 17:47:52,118 [DEBUG] TxHandler Peer-thread-11 Adding 1 blocks
2013-12-28 17:47:52,118 [DEBUG] TxHandler Peer-thread-11 First seen in block: f99b03f8875723c4df808a7a5aa3c457614c8b92fb0655d2c7799076e5293268
2013-12-28 17:47:52,118 [DEBUG] TxHandler Peer-thread-11 Pool size: 0
2013-12-28 17:47:52,120 [DEBUG] CachedBlockStore Peer-thread-11 stored block 1873 000000002aacdf4f815942c612af16cbd181b0102c1d9a09f41c6862815f9d89
2013-12-28 17:50:44,241 [INFO] BitcoinPeer Peer-thread-9 Disconnected '/Satoshi:0.8.99/' at bitseed.xf2.org/62.75.216.13:8333
2013-12-28 17:50:50,146 [INFO] BitcoinPeer Peer-thread-13 Disconnected '/Satoshi:0.8.3/' at dnsseed.bluematt.me/71.236.191.178:8333
2013-12-28 17:52:11,299 [DEBUG] P2P Peer connector Unhandled exception in peer queue
java.net.SocketException: Network is unreachable
   at java.net.Inet6AddressImpl.isReachable0(Native Method)
   at java.net.Inet6AddressImpl.isReachable(Inet6AddressImpl.java:77)
   at java.net.InetAddress.isReachable(InetAddress.java:441)
   at java.net.InetAddress.isReachable(InetAddress.java:400)
   at com.bitsofproof.supernode.core.P2P$2.run(P2P.java:709)
   at java.lang.Thread.run(Thread.java:722)
2013-12-28 17:53:12,672 [DEBUG] P2P Peer connector Unhandled exception in peer queue
java.net.SocketException: Network is unreachable
   at java.net.Inet6AddressImpl.isReachable0(Native Method)
   at java.net.Inet6AddressImpl.isReachable(Inet6AddressImpl.java:77)
   at java.net.InetAddress.isReachable(InetAddress.java:441)
   at java.net.InetAddress.isReachable(InetAddress.java:400)
   at com.bitsofproof.supernode.core.P2P$2.run(P2P.java:709)
   at java.lang.Thread.run(Thread.java:722)
2013-12-28 17:53:52,345 [DEBUG] P2P Peer connector Unhandled exception in peer queue
java.net.SocketException: Network is unreachable
   at java.net.Inet6AddressImpl.isReachable0(Native Method)
   at java.net.Inet6AddressImpl.isReachable(Inet6AddressImpl.java:77)
   at java.net.InetAddress.isReachable(InetAddress.java:441)
   at java.net.InetAddress.isReachable(InetAddress.java:400)
   at com.bitsofproof.supernode.core.P2P$2.run(P2P.java:709)
   at java.lang.Thread.run(Thread.java:722)
2013-12-28 17:53:56,350 [DEBUG] P2P Peer connector Unhandled exception in peer queue
java.net.SocketException: Network is unreachable
   at java.net.Inet6AddressImpl.isReachable0(Native Method)
   at java.net.Inet6AddressImpl.isReachable(Inet6AddressImpl.java:77)
   at java.net.InetAddress.isReachable(InetAddress.java:441)
   at java.net.InetAddress.isReachable(InetAddress.java:400)
   at com.bitsofproof.supernode.core.P2P$2.run(P2P.java:709)
   at java.lang.Thread.run(Thread.java:722)
2013-12-28 17:54:17,756 [DEBUG] P2P Peer connector Unhandled exception in peer queue
java.net.SocketException: Network is unreachable
   at java.net.Inet6AddressImpl.isReachable0(Native Method)
   at java.net.Inet6AddressImpl.isReachable(Inet6AddressImpl.java:77)
   at java.net.InetAddress.isReachable(InetAddress.java:441)
   at java.net.InetAddress.isReachable(InetAddress.java:400)
   at com.bitsofproof.supernode.core.P2P$2.run(P2P.java:709)
   at java.lang.Thread.run(Thread.java:722)
2013-12-28 17:54:17,756 [DEBUG] P2P Peer connector Unhandled exception in peer queue
java.net.SocketException: Network is unreachable
   at java.net.Inet6AddressImpl.isReachable0(Native Method)
   at java.net.Inet6AddressImpl.isReachable(Inet6AddressImpl.java:77)
   at java.net.InetAddress.isReachable(InetAddress.java:441)
   at java.net.InetAddress.isReachable(InetAddress.java:400)
   at com.bitsofproof.supernode.core.P2P$2.run(P2P.java:709)
   at java.lang.Thread.run(Thread.java:722)
2013-12-28 17:54:17,757 [DEBUG] P2P Peer connector Unhandled exception in peer queue
java.net.SocketException: Network is unreachable
   at java.net.Inet6AddressImpl.isReachable0(Native Method)
   at java.net.Inet6AddressImpl.isReachable(Inet6AddressImpl.java:77)
   at java.net.InetAddress.isReachable(InetAddress.java:441)
   at java.net.InetAddress.isReachable(InetAddress.java:400)
   at com.bitsofproof.supernode.core.P2P$2.run(P2P.java:709)
   at java.lang.Thread.run(Thread.java:722)
2013-12-28 17:54:17,757 [DEBUG] P2P Peer connector Unhandled exception in peer queue
java.net.SocketException: Network is unreachable
   at java.net.Inet6AddressImpl.isReachable0(Native Method)
   at java.net.Inet6AddressImpl.isReachable(Inet6AddressImpl.java:77)
   at java.net.InetAddress.isReachable(InetAddress.java:441)
   at java.net.InetAddress.isReachable(InetAddress.java:400)
   at com.bitsofproof.supernode.core.P2P$2.run(P2P.java:709)
   at java.lang.Thread.run(Thread.java:722)
2013-12-28 17:55:59,265 [DEBUG] P2P Peer connector Unhandled exception in peer queue
java.net.SocketException: Network is unreachable
   at java.net.Inet6AddressImpl.isReachable0(Native Method)
   at java.net.Inet6AddressImpl.isReachable(Inet6AddressImpl.java:77)
   at java.net.InetAddress.isReachable(InetAddress.java:441)
   at java.net.InetAddress.isReachable(InetAddress.java:400)
   at com.bitsofproof.supernode.core.P2P$2.run(P2P.java:709)
   at java.lang.Thread.run(Thread.java:722)
2013-12-28 17:57:05,442 [DEBUG] P2P Peer connector Unhandled exception in peer queue
java.net.SocketException: Network is unreachable
   at java.net.Inet6AddressImpl.isReachable0(Native Method)
   at java.net.Inet6AddressImpl.isReachable(Inet6AddressImpl.java:77)
   at java.net.InetAddress.isReachable(InetAddress.java:441)
   at java.net.InetAddress.isReachable(InetAddress.java:400)
   at com.bitsofproof.supernode.core.P2P$2.run(P2P.java:709)
   at java.lang.Thread.run(Thread.java:722)
2013-12-28 17:57:07,588 [DEBUG] P2P Peer connector Unhandled exception in peer queue
java.net.SocketException: Network is unreachable
   at java.net.Inet6AddressImpl.isReachable0(Native Method)
   at java.net.Inet6AddressImpl.isReachable(Inet6AddressImpl.java:77)
   at java.net.InetAddress.isReachable(InetAddress.java:441)
   at java.net.InetAddress.isReachable(InetAddress.java:400)
   at com.bitsofproof.supernode.core.P2P$2.run(P2P.java:709)
   at java.lang.Thread.run(Thread.java:722)
2013-12-28 17:58:02,038 [DEBUG] P2P Peer connector Unhandled exception in peer queue
java.net.SocketException: Network is unreachable
   at java.net.Inet6AddressImpl.isReachable0(Native Method)
   at java.net.Inet6AddressImpl.isReachable(Inet6AddressImpl.java:77)
   at java.net.InetAddress.isReachable(InetAddress.java:441)
   at java.net.InetAddress.isReachable(InetAddress.java:400)
   at com.bitsofproof.supernode.core.P2P$2.run(P2P.java:709)
   at java.lang.Thread.run(Thread.java:722)

There are different java.net.SocketException, is it normal?

In the same machine I can run bitcoind without any problem so there should be no problem to run Bop Server too.

Can you please help me?

Thank you in advance
newbie
Activity: 6
Merit: 0
Great it works now!
hero member
Activity: 836
Merit: 1021
bits of proof
Uups, I removed the memdb context by accident. Sorry.

Re-added now, fetch from github.
newbie
Activity: 6
Merit: 0
Hi Grau,
thank you very much for your great work on bitsofproof supernode, I've just downloaded it and I'm trying to run it following your instructions but when I run

java -server -Xmx2g -jar server/target/bitsofproof-server-1.3.7-SNAPSHOT.jar testnet3 memdb

I get the following exceptions:

2013-12-12 10:22:02,325 [INFO] Main main bitsofproof supernode (c) 2013 bits of proof zrt.
2013-12-12 10:22:02,636 [INFO] Main main Loading profile: testnet3
2013-12-12 10:22:02,636 [INFO] Main main Loading profile: memdb
2013-12-12 10:22:03,776 [ERROR] Main main Error setting up spring context
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'application' defined in class path resource [context/server.xml]: Cannot resolve reference to bean 'bitcoinNetwork' while setting bean property 'network'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bitcoinNetwork' defined in file [..\projects\supernode\server\target\classes\context\testnet3-profile.xml]: Cannot resolve reference to bean 'store' while setting bean property 'store'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'store' is defined
   at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveRe ference(BeanDefinitionValueResolver.java:328)
   at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveVa lueIfNecessary(BeanDefinitionValueResolver.java:106)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.ap plyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.po pulateBean(AbstractAutowireCapableBeanFactory.java:1118)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.do CreateBean(AbstractAutowireCapableBeanFactory.java:517)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cr eateBean(AbstractAutowireCapableBeanFactory.java:456)
   at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingl eton(DefaultSingletonBeanRegistry.java:225)
   at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstant iateSingletons(DefaultListableBeanFactory.java:609)
   at org.springframework.context.support.AbstractApplicationContext.finishBeanFactor yInitialization(AbstractApplicationContext.java:918)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
   at com.bitsofproof.supernode.main.Main.main(Main.java:74)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bitcoinNetwork' defined in file [..\projects\supernode\server\target\classes\context\testnet3-profile.xml]: Cannot resolve reference to bean 'store' while setting bean property 'store'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'store' is defined
   at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveRe ference(BeanDefinitionValueResolver.java:328)
   at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveVa lueIfNecessary(BeanDefinitionValueResolver.java:106)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.ap plyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.po pulateBean(AbstractAutowireCapableBeanFactory.java:1118)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.do CreateBean(AbstractAutowireCapableBeanFactory.java:517)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cr eateBean(AbstractAutowireCapableBeanFactory.java:456)
   at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingl eton(DefaultSingletonBeanRegistry.java:225)
   at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
   at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveRe ference(BeanDefinitionValueResolver.java:322)
   ... 13 more
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'store' is defined
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDef inition(DefaultListableBeanFactory.java:553)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBea nDefinition(AbstractBeanFactory.java:1095)
   at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:277)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
   at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveRe ference(BeanDefinitionValueResolver.java:322)
   ... 23 more
   
   
Am I missing something?

Thanks
hero member
Activity: 836
Merit: 1021
bits of proof
Added BIP39 support,  that passes Trezor's test vectors.
https://github.com/bitsofproof/supernode/blob/master/api/src/main/java/com/bitsofproof/supernode/wallet/BIP39.java

Added Shamir's secret shares algorithm
https://github.com/bitsofproof/supernode/blob/master/api/src/main/java/com/bitsofproof/supernode/wallet/ShamirsSecretSharing.java

You can create a random word list e.g.:
Code:
		SecureRandom random = new SecureRandom ();
byte[] seed = new byte[16];
random.nextBytes (seed);
System.out.println (BIP39.encode (seed, ""));
// assume it prints:
// mind evil language crouch legal brave insane bid speed notice material scheme

You may now create a BIP32 master out of a word list as e.g.
Code:
		String mnemonic = "mind evil language crouch legal brave insane bid speed notice material scheme";
ExtendedKey key = ExtendedKey.create (BIP39.decode (mnemonic, ""));
System.out.println (key.serialize (true));
// prints: xprv9s21ZrQH143K2uwgrphL7P5ePDPBp8ukjVT3CspHyvdHigHY9DAYQX6D6dkBThQCgmJskkzTbHFy6ZGvz3Vm8GzkGuDAWmvqsKrityeTW5W

Instead of storing the secret word list you could create 3 backups of which 2 is needed to recreate the list (and one is useless alone).

Code:
		List backups = ShamirsSecretSharing.issueMnemonicShares (BIP39.decode (mnemonic, ""), 3, 2, "");
for ( String b : backups )
{
System.out.println (b);
}
// prints:
// find worry owner drill category cancel error stock inspire place bullet blind wood course spend gather response fat
// huge bulk human envelope theory van cricket cattle reopen divorce alley upper pig afford spy mass design reduce
// noodle predict ancient tuition still result garbage melt wise angle island peace rate cereal outside actual more lock

Now take any two of the three to reconstruct the key:

Code:
		List pick = new ArrayList<> ();
pick.add (backups.get (0));
pick.add (backups.get (2));
ExtendedKey recreated = ExtendedKey.create (ShamirsSecretSharing.reconstructFromMnemonicShares (pick, ""));
System.out.println (recreated.serialize (true));
// prints again:
// prints: xprv9s21ZrQH143K2uwgrphL7P5ePDPBp8ukjVT3CspHyvdHigHY9DAYQX6D6dkBThQCgmJskkzTbHFy6ZGvz3Vm8GzkGuDAWmvqsKrityeTW5W

Use the passphrase option (the "" in parameters) to get plausible deniability of the wallet, since you may fund more than one passphrase.
hero member
Activity: 836
Merit: 1021
bits of proof
You were "lucky" to hit the maintenance window our hosting provider announced and used.

Um, I tried to open it on Sunday and Monday and it was down too, so maybe you need to change your provider.
I am quite sure it was not down. Maybe routing problems. Where are you accessing from?
newbie
Activity: 35
Merit: 0
You were "lucky" to hit the maintenance window our hosting provider announced and used.

Um, I tried to open it on Sunday and Monday and it was down too, so maybe you need to change your provider.
hero member
Activity: 836
Merit: 1021
bits of proof
You were "lucky" to hit the maintenance window our hosting provider announced and used.
newbie
Activity: 35
Merit: 0
Is bitsofproof.com down  Huh
hero member
Activity: 836
Merit: 1021
bits of proof
The authentication is handled by the message broker. The community server is the open source code that you can build and run on your own with your own message broker process. e.g. ActiveMQ, so username and password depends on your configuration.

In case you would like to use an Enterprise Server hosted by BOP, then please drop me a mail or a PM.
alp
full member
Activity: 284
Merit: 101
A dumb question I'm sure, but how to I set up users and passwords on a community edition server? I have a node running and am trying to connect with the bop-api-example and have had no luck connecting with a user and password.
hero member
Activity: 836
Merit: 1021
bits of proof
as of 1.2 the relational schema is no longer part of the community version, but moved to the audit server.
newbie
Activity: 15
Merit: 0
Also added documentation on configuration and database schema overview in:
https://github.com/bitsofproof/supernode/wiki
Grau, where is the schema now located, can't find it via that link? Thanks.
hero member
Activity: 836
Merit: 1021
bits of proof
Why not follow the build instructions and install protobuf 2.4
1?
legendary
Activity: 1001
Merit: 1003
Unable to build using mvn

My setup:
win7 pro (64bit)
java version "1.6.0_43"

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] \code\Bitcoin\bitsofproof\supernode\api\src\main\java\com\bitsofproof\supernode\api\BCSAPIMessage.java:[11,22] com.bitsofproof.supernode.api.BCSAPIMessage.Ping is not abstract and does not override abstract method newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent) in com.google.protobuf.GeneratedMessage
...

full error here
http://pastebin.com/GfUVKvYi
sr. member
Activity: 294
Merit: 250
I'll probably work on it then.

hero member
Activity: 836
Merit: 1021
bits of proof
Does this supernode support mining of the coins like the bitcoind?

In case you mean support for miner protocols like getwork RPC, then no support for that. As of now I see no upside mining Bitcoin with this, not for the product and not for the network.

In case you are considering to develop an alt-coin,  then it would not be a big trick to add CPU mining with your rules as it has a memory pool of unconfirmed transactions.

So as I undestand the getwork protocol in not supported.

So to create a block with a coin base and the mechanism to do that, is not in the current code base?  What I mean is that bitcoind has a setgenerate true argument that starts up a bitcoinminer in CPU.  Is that part implemented or does that need to be reimplemented in your supernode?
There is a unit/integration test that shows how to build a chain on the fly to test the API: https://github.com/bitsofproof/supernode/blob/1.1/server/src/test/java/com/bitsofproof/supernode/test/APITest.java

The mempool is in https://github.com/bitsofproof/supernode/blob/1.1/server/src/main/java/com/bitsofproof/supernode/core/TxHandler.java
called unconfirmed.

I have however no motivation to put those pieces together into a CPU miner as there is no upside for that in Bitcoin and have no alt-coin customer yet. Let me know if you have commercial interest or want to work on it.


Pages:
Jump to: