Giter Club home page Giter Club logo

supernode's Introduction

WARNING: ARCHIVE ONLY

This repository contains early versions of Bits of Proof's software. Left at this place only to serve earlier references to it.

The BOP Bitcoin Server is our foundation, the first enterprise ready implementation of the Bitcoin protocol.

Client applications connect with the server through a message bus, only embedding a small memory and network footprint library. Bitcoin keys that command your balances are never transmitted to the server as transactions are signed in the client library. Therefore it is safe to use a hosted and even shared instance of our servers, without compromising on security of your Bitcoin holdings. Our software implements features that go far beyond what is available in the ‘reference implementation’.

Bits of Proof built several payment processors, the first externally auditable exchange with multi signature P2SH wallets https://bullionbitcoin.com, and the most secure web wallet where you hold your keys literally in your hands: https://mytrezor.com

CURRENT VERSION

A current version of the BOP Bitcoin Server API is available at:

https://github.com/bitsofproof/bop-bitcoin-client

Contact [email protected] for further information on our products.

supernode's People

Contributors

bartfaitamas avatar keo avatar senecaso avatar sinimulanca avatar tamasblummer 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

supernode's Issues

Won't build on Java 7.

I'm trying to build commit a7483c8. It fails with this error:

[javac] /home/mark/workspace/supernode/src/com/bitsofproof/supernode/model/PooledDatasource.java:35: error: PooledDatasource is not abstract and does not override abstract method getParentLogger() in CommonDataSource [javac] public class PooledDatasource implements DataSource [javac] ^ [javac] 1 error

My javac:

mark@Hannibal:~/workspace/supernode$ java -version java version "1.7.0_09" OpenJDK Runtime Environment (IcedTea7 2.3.3) (7u9-2.3.3-0ubuntu1~12.10.1) OpenJDK Server VM (build 23.2-b09, mixed mode)

I checked out (approx) HEAD~40 and that built Ok...

You might consider using Travis ci or something similar.

problem with Maven

getting this when I run 'mvn package'

Component descriptor role: 'com.jcraft.jsch.UIKeyboardInteractive', implementation: 'org.apache.maven.wagon.providers.ssh.jsch.interactive.PrompterUIKeyboardInteractive', role hint: 'default' has a hint, but there are other implementations that don't

Fork at block 244029

BOP Validation engine does not accept block 244029 of main network. This is the first disagreement since January 2013. Observed in 1.1.3

Affects only standalone Community instances.

BOP Enterprise Bitcoin Server instances are not affected as they run as slave behind a Satoshi client.

OutOfMemory error?

I am running the supernode as slave and got the following error today:

113310 [INFO] BitcoinPeer Peer-thread-1 Connection to '/Satoshi:0.8.3/' [70001] at localhost/127.0.0.1:8333 Open connections: 1
Exception in thread "Peer selector" java.lang.OutOfMemoryError: Java heap space
    at com.bitsofproof.supernode.core.P2P$Peer.process(P2P.java:196)
    at com.bitsofproof.supernode.core.P2P$Peer.access$1700(P2P.java:55)
    at com.bitsofproof.supernode.core.P2P$1.run(P2P.java:624)
    at java.lang.Thread.run(Thread.java:724)
Exception in thread "Peer-thread-0" java.lang.OutOfMemoryError: Java heap space
    at com.google.protobuf.ByteString.copyFrom(ByteString.java:92)
    at com.google.protobuf.CodedInputStream.readBytes(CodedInputStream.java:289)
    at com.bitsofproof.supernode.model.LevelDBStore$TX$TXOUT$Builder.mergeFrom(LevelDBStore.java:1152)
    at com.bitsofproof.supernode.model.LevelDBStore$TX$TXOUT$Builder.mergeFrom(LevelDBStore.java:954)
    at com.google.protobuf.CodedInputStream.readMessage(CodedInputStream.java:275)
    at com.bitsofproof.supernode.model.LevelDBStore$TX$Builder.mergeFrom(LevelDBStore.java:1983)
    at com.bitsofproof.supernode.model.LevelDBStore$TX$Builder.mergeFrom(LevelDBStore.java:1654)
    at com.google.protobuf.AbstractMessage$Builder.mergeFrom(AbstractMessage.java:300)
    at com.google.protobuf.AbstractMessage$Builder.mergeFrom(AbstractMessage.java:238)
    at com.google.protobuf.AbstractMessageLite$Builder.mergeFrom(AbstractMessageLite.java:162)
    at com.google.protobuf.AbstractMessage$Builder.mergeFrom(AbstractMessage.java:716)
    at com.google.protobuf.AbstractMessage$Builder.mergeFrom(AbstractMessage.java:238)
    at com.google.protobuf.AbstractMessageLite$Builder.mergeFrom(AbstractMessageLite.java:153)
    at com.google.protobuf.AbstractMessage$Builder.mergeFrom(AbstractMessage.java:709)
    at com.bitsofproof.supernode.model.LevelDBStore$TX.parseFrom(LevelDBStore.java:1588)
    at com.bitsofproof.supernode.model.Tx.fromLevelDB(Tx.java:152)
    at com.bitsofproof.supernode.model.LvlStore.readTx(LvlStore.java:70)
    at com.bitsofproof.supernode.model.LvlStore.findTxOuts(LvlStore.java:377)
    at com.bitsofproof.supernode.core.CachedBlockStore.resolveInputsUsingDB(CachedBlockStore.java:1364)
    at com.bitsofproof.supernode.core.CachedBlockStore.resolveInputs(CachedBlockStore.java:1328)
    at com.bitsofproof.supernode.core.CachedBlockStore.validateTransaction(CachedBlockStore.java:1699)
    at com.bitsofproof.supernode.core.TxHandler$7$1.doInTransaction(TxHandler.java:233)
    at com.bitsofproof.supernode.core.TxHandler$7$1.doInTransaction(TxHandler.java:223)
    at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
    at com.bitsofproof.supernode.core.TxHandler$7.run(TxHandler.java:222)
    at com.bitsofproof.supernode.core.CachedBlockStore.runInCacheContext(CachedBlockStore.java:125)
    at com.bitsofproof.supernode.core.TxHandler.validateCacheAndSend(TxHandler.java:213)
    at com.bitsofproof.supernode.core.TxHandler$5.process(TxHandler.java:183)
    at com.bitsofproof.supernode.core.TxHandler$5.process(TxHandler.java:176)
    at com.bitsofproof.supernode.core.BitcoinPeer.receive(BitcoinPeer.java:516)
    at com.bitsofproof.supernode.core.P2P$Peer$3.run(P2P.java:297)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

Should I simply increase heap space?

UPDATE:

I restarted it and it seems the blockchain download progress got to a point where it's having problems:

$ java -server -Xmx2g -jar server/target/bitsofproof-server-1.1.4.jar slave leveldb
0 [INFO] Main main bitsofproof supernode (c) 2013 bits of proof zrt.
660 [INFO] Main main Loading profile: slave
660 [INFO] Main main Loading profile: leveldb
3560 [WARN] JtaTransactionManager main No JTA TransactionManager found: transaction suspension not available
Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded
    at java.io.ByteArrayOutputStream.<init>(ByteArrayOutputStream.java:77)
    at java.io.ByteArrayOutputStream.<init>(ByteArrayOutputStream.java:62)
    at org.bouncycastle.util.encoders.Hex.encode(Unknown Source)
    at org.bouncycastle.util.encoders.Hex.encode(Unknown Source)
    at com.bitsofproof.supernode.common.ByteUtils.toHex(ByteUtils.java:164)
    at com.bitsofproof.supernode.common.Hash.toString(Hash.java:118)
    at com.bitsofproof.supernode.model.Blk.fromLevelDB(Blk.java:111)
    at com.bitsofproof.supernode.model.LvlStore$1.process(LvlStore.java:178)
    at com.bitsofproof.supernode.model.LvlDiskStore.forAll(LvlDiskStore.java:182)
    at com.bitsofproof.supernode.model.LvlStore.cacheChain(LvlStore.java:170)
    at com.bitsofproof.supernode.core.CachedBlockStore.cache(CachedBlockStore.java:370)
    at com.bitsofproof.supernode.main.Supernode.start(Supernode.java:69)
    at com.bitsofproof.supernode.main.Main.main(Main.java:75)

I ran it now with 3 gigs, let's see what happens.

mvn package failing

mvn package is failing to build bitsofproof-server-api with the following test failures:

Tests in error:
bip32PassphraseTest(com.bitsofproof.supernode.api.ExtendedKeyTest): java.security.InvalidKeyException: Illegal key size or default parameters
bip38NoECTest(com.bitsofproof.supernode.api.KeySerializerTest): java.security.InvalidKeyException: Illegal key size or default parameters
bip38ECTest(com.bitsofproof.supernode.api.KeySerializerTest): java.security.InvalidKeyException: Illegal key size or default parameters
bip38RandomTest(com.bitsofproof.supernode.api.KeySerializerTest): checksum mismatch

Tests run: 13, Failures: 0, Errors: 4, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] supernode ......................................... SUCCESS [2.739s]
[INFO] bitsofproof-server-api ............................ FAILURE [36.472s]
[INFO] bitsofproof-server ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE

I've installed the UnlimitedJCEPolicy files, but it didn't solve the problem. Any ideas?

not reconnecting - not getting the data

it seems, that for some reason threads are not reconnecting, here's a piece from log:

I don't know if this is related to issue #41 or not

2014-01-04 01:06:33,398 [INFO] BitcoinPeer Peer-thread-2 Disconnected 'null' at dnsseed.bitcoin.dashjr.org/220.189.203.68:8333
2014-01-04 01:22:50,060 [INFO] BitcoinPeer Peer-thread-10 Disconnected 'null' at seed.bitcoin.sipa.be/123.254.108.166:8333
2014-01-04 01:29:39,737 [INFO] BitcoinPeer Peer-thread-2 Disconnected 'null' at seed.bitcoin.sipa.be/122.224.5.71:8333
2014-01-04 01:31:58,349 [INFO] BitcoinPeer Peer-thread-2 Disconnected 'null' at dnsseed.bluematt.me/220.189.203.68:8333

from 01:30-03:20 nothing happened, later I restarted server.

Update README.md

Please consider mentioning bop-service.sh in README.md.
Also please add information that supernode builds against protoc --version #=> 2.5.0 simply by replacing (in pom.xml)

                <protobuf.version>2.4.1</protobuf.version>

with

                <protobuf.version>2.5.0</protobuf.version>

This is required to properly build supernode on rolling-release Linux distros.

supernode doesn't reconnect?

I started hacking on the BoP server.

I installed it on OS X 10.8 and was able to successfully run it (thanks a lot Tamas for the help).

It started downloading the blockchain, but after sending my computer to sleep, then waking it up I realized the the server doesn't reconnect.

I tried reproducing the error: turned WiFi off, waited 5 minutes, then turned it back on, then started watching the data dir, but it didn't continue to grow.

Here's the output from the console:

$ java -server -Xmx2g -jar server/target/bitsofproof-server-1.1.4.jar production leveldb
0 [INFO] Main main bitsofproof supernode (c) 2013 bits of proof zrt.
498 [INFO] Main main Loading profile: production
499 [INFO] Main main Loading profile: leveldb
2960 [WARN] JtaTransactionManager main No JTA TransactionManager found: transaction suspension not available
16116 [INFO] BitcoinPeer Peer-thread-2 Connection to '/Satoshi:0.8.1.99/' [70001] at seed.bitcoin.sipa.be/106.187.52.100:8333 Open connections: 1
20362 [INFO] BitcoinPeer Peer-thread-1 Connection to '/Satoshi:0.8.3/' [70001] at dnsseed.bitcoin.dashjr.org/77.247.178.71:8333 Open connections: 2
28849 [INFO] BitcoinPeer Peer-thread-0 Connection to '/Satoshi:0.8.1/' [70001] at dnsseed.bluematt.me/77.21.81.201:8333 Open connections: 4
28934 [INFO] BitcoinPeer Peer-thread-0 Connection to '/Satoshi:0.8.3/' [70001] at dnsseed.bitcoin.dashjr.org/192.241.142.165:8333 Open connections: 4
32016 [INFO] BitcoinPeer Peer-thread-0 Connection to '/Satoshi:0.8.99/' [70001] at seed.bitcoin.sipa.be/176.9.104.178:8333 Open connections: 6
33111 [INFO] BitcoinPeer Peer-thread-0 Connection to '/Satoshi:0.8.2.2/' [70001] at dnsseed.bluematt.me/60.29.146.165:8333 Open connections: 6
34782 [INFO] BitcoinPeer Peer-thread-0 Connection to '/Satoshi:0.8.99/' [70001] at bitseed.xf2.org/69.64.34.118:8333 Open connections: 7
43842 [INFO] BitcoinPeer Peer-thread-2 Connection to '/Satoshi:0.8.1/' [70001] at bitseed.xf2.org/94.23.6.26:8333 Open connections: 9
43843 [INFO] BitcoinPeer Peer-thread-3 Connection to '/Satoshi:0.8.1/' [70001] at dnsseed.bitcoin.dashjr.org/130.237.234.162:8333 Open connections: 9
48316 [INFO] BitcoinPeer Peer-thread-0 Connection to '/Satoshi:0.8.2.2/' [70001] at dnsseed.bitcoin.dashjr.org/199.71.213.209:8333 Open connections: 10
260306 [INFO] BitcoinPeer Peer-thread-3 Disconnected '/Satoshi:0.8.1.99/' at seed.bitcoin.sipa.be/106.187.52.100:8333
261123 [INFO] BitcoinPeer Peer-thread-3 Connection to '/Satoshi:0.8.3/' [70001] at dnsseed.bluematt.me/188.122.92.135:8333 Open connections: 10
1714284 [INFO] BitcoinPeer Peer-thread-2 Disconnected '/Satoshi:0.8.1/' at dnsseed.bluematt.me/77.21.81.201:8333
1715779 [INFO] BitcoinPeer Peer-thread-0 Connection to '/Satoshi:0.8.3/' [70001] at dnsseed.bluematt.me/88.190.229.196:8333 Open connections: 10
1897722 [INFO] BitcoinPeer Peer-thread-3 Disconnected '/Satoshi:0.8.3/' at dnsseed.bluematt.me/88.190.229.196:8333
1898958 [INFO] BitcoinPeer Peer-thread-2 Connection to '/Satoshi:0.8.99/' [70001] at bitseed.xf2.org/62.75.216.13:8333 Open connections: 10
2084134 [INFO] BitcoinPeer Peer-thread-2 Disconnected '/Satoshi:0.8.99/' at seed.bitcoin.sipa.be/176.9.104.178:8333
9002757 [INFO] BitcoinPeer Peer-thread-2 Disconnected '/Satoshi:0.8.1/' at bitseed.xf2.org/94.23.6.26:8333
9002757 [INFO] BitcoinPeer Peer-thread-2 Disconnected '/Satoshi:0.8.99/' at bitseed.xf2.org/69.64.34.118:8333
9002759 [INFO] BitcoinPeer Peer-thread-2 Disconnected '/Satoshi:0.8.3/' at dnsseed.bitcoin.dashjr.org/192.241.142.165:8333
9004405 [INFO] BitcoinPeer Peer-thread-3 Disconnected '/Satoshi:0.8.3/' at dnsseed.bitcoin.dashjr.org/77.247.178.71:8333
9005139 [WARN] P2P Peer connector Could not discover peers
9035201 [INFO] BitcoinPeer Peer-thread-2 Disconnected '/Satoshi:0.8.1/' at dnsseed.bitcoin.dashjr.org/130.237.234.162:8333
9045328 [INFO] BitcoinPeer Peer-thread-3 Disconnected '/Satoshi:0.8.99/' at bitseed.xf2.org/62.75.216.13:8333
9062437 [INFO] BitcoinPeer Peer-thread-1 Disconnected '/Satoshi:0.8.2.2/' at dnsseed.bitcoin.dashjr.org/199.71.213.209:8333
9121254 [INFO] BitcoinPeer Peer-thread-0 Disconnected '/Satoshi:0.8.3/' at dnsseed.bluematt.me/188.122.92.135:8333
9184156 [INFO] BitcoinPeer Peer-thread-2 Disconnected '/Satoshi:0.8.2.2/' at dnsseed.bluematt.me/60.29.146.165:8333

Is this a known issue or am I doing something wrong?

I would love to fix this and create a pull request, but I'm not a java guy unfortunately.

Remove misleading comment

https://github.com/bitsofproof/supernode/blob/1.2/server/src/test/java/com/bitsofproof/supernode/test/BitcoinJBlockTest.java#L44-L50 says

/*
* This test will not run automaticaly with maven since
* it requires significant resources.
* Run it with at least 1GB of heap otherwise memomry database overflows.
* Run it on a strong machine, it does multithreaded validation
* for thousands of signatures.
*/

but mvn package appears to run bitcoinJ block test by deafault:

~/github/others/supernode λ mvn package
*snip*
304976 [TRACE] CachedBlockStore main resolving inputs for block 406997b37f08e80a757bb50a1756fcecfc262fba12dfadb7eb67cded8ed8e0d3
305394 [TRACE] BitcoinJBlockTest main rejected b38 Transaction refers to unknown or spent output 8062ba1eb61a155aef6a8cfa0740c30f8d45db05cb35293c1d05ed6c3c15cd07 [1] 010000000107cd153c6ced051d3c2935cb05db458d0fc34007fa8c6aef5a151ab61eba6280010000004a493046022100b9bae66a5833f4d792c7cb72150c52d81cc2c43bea9d61c65e3770bd0f763672022100b677a59da6ced0407d7138b2bd07f848cd9a0bfe94b1eb1a348fdea4a80a510801ffffffff0101000000000000000000000000
305394 [TRACE] BitcoinJBlockTest main evaluate b39
309735 [TRACE] CachedBlockStore main Start storing block 1afe8e41adf7e93c561c334351333a6dfc2f6ff48ded2f6263bd1de46f04f450
*snip*

Ivy dependency issue

I am getting the below message when trying to retrieve the dependencies.

Buildfile: D:\IT\GitHub\supernode\build.xml
retrieve:
No ivy:settings found for the default reference 'ivy.instance'. A default instance will be used
[ivy:resolve] :: Ivy 2.0.0-beta1 - 20071206070608 :: http://ant.apache.org/ivy/ ::
:: loading settings :: file = D:\IT\GitHub\supernode\ivysettings.xml
[ivy:resolve] :: resolving dependencies :: com.bitsofproof#server;working@TylerPC
[ivy:resolve] confs: [default]
[ivy:resolve] found org.springframework#spring-context;3.1.2.RELEASE in central
[ivy:resolve] found org.springframework#spring-aop;3.1.2.RELEASE in central
[ivy:resolve] found aopalliance#aopalliance;1.0 in central
[ivy:resolve] found org.springframework#spring-asm;3.1.2.RELEASE in central
[ivy:resolve] found org.springframework#spring-beans;3.1.2.RELEASE in central
[ivy:resolve] found org.springframework#spring-core;3.1.2.RELEASE in central
[ivy:resolve] found org.springframework#spring-expression;3.1.2.RELEASE in central
[ivy:resolve] found org.hamcrest#hamcrest-all;1.1 in central
[ivy:resolve] found org.codehaus.jsr166-mirror#jsr166;1.7.0 in central
[ivy:resolve] found backport-util-concurrent#backport-util-concurrent;3.0 in central
[ivy:resolve] found javax.annotation#jsr250-api;1.0 in central
[ivy:resolve] found org.apache.geronimo.specs#geronimo-ejb_3.0_spec;1.0.1 in central
[ivy:resolve] found org.apache.geronimo.specs#geronimo-interceptor_3.0_spec;1.0.1 in central
[ivy:resolve] found javax.inject#javax.inject;1 in central
[ivy:resolve] found org.apache.geronimo.specs#geronimo-jms_1.1_spec;1.1 in central
[ivy:resolve] found javax.validation#validation-api;1.0.0.GA in central
[ivy:resolve] found javax.xml.ws#jaxws-api;2.1-1 in central
[ivy:resolve] found javax.xml.bind#jaxb-api;2.1 in central
[ivy:resolve] found javax.xml.stream#stax-api;1.0-2 in central
[ivy:resolve] found javax.activation#activation;1.1 in central
[ivy:resolve] found javax.xml.soap#saaj-api;1.3 in central
[ivy:resolve] activation#activation;1.0.2 is relocated to javax.activation#activation;1.0.2. Please update your dependencies.
[ivy:resolve] found activation#activation;1.0.2 in central
[ivy:resolve] found javax.jws#jsr181;1.0 in central
[ivy:resolve] found cglib#cglib-nodep;2.2 in central
[ivy:resolve] found org.aspectj#aspectjweaver;1.6.8 in central
[ivy:resolve] found org.beanshell#bsh;2.0b4 in central
[ivy:resolve] found org.codehaus.groovy#groovy-all;1.6.3 in central
[ivy:resolve] found junit#junit;3.8.2 in central
[ivy:resolve] found org.apache.ant#ant;1.7.1 in central
[ivy:resolve] found org.apache.ant#ant-launcher;1.7.1 in central
[ivy:resolve] found jline#jline;0.9.94 in central
[ivy:resolve] found org.jruby#jruby;1.4.0 in central
[ivy:resolve] found asm#asm;3.0 in central
[ivy:resolve] found joda-time#joda-time;1.6 in central
[ivy:resolve] found org.springframework#spring-instrument;3.1.2.RELEASE in central
[ivy:resolve] found org.apache.geronimo.specs#geronimo-jta_1.1_spec;1.1 in central
[ivy:resolve] found net.sf.ehcache#ehcache-core;2.0.0 in central
[ivy:resolve] found org.slf4j#slf4j-api;1.5.8 in central
[ivy:resolve] found org.hibernate#hibernate-validator;4.3.0.Final in central
[ivy:resolve] found org.jboss.logging#jboss-logging;3.1.0.CR2 in central
[ivy:resolve] found org.hibernate.javax.persistence#hibernate-jpa-2.0-api;1.0.1.Final in central
[ivy:resolve] found org.jsoup#jsoup;1.6.1 in central
[ivy:resolve] found org.springframework.data#spring-data-jpa;1.1.0.RELEASE in central
[ivy:resolve] found org.springframework.data#spring-data-commons-core;1.3.0.RELEASE in central
[ivy:resolve] found junit#junit-dep;4.8.2 in central
[ivy:resolve] found org.hamcrest#hamcrest-core;1.1 in central
[ivy:resolve] found org.slf4j#slf4j-api;1.6.1 in central
[ivy:resolve] found org.aspectj#aspectjrt;1.6.12 in central
[ivy:resolve] found org.slf4j#jcl-over-slf4j;1.6.1 in central
[ivy:resolve] found com.mysema.querydsl#querydsl-apt;2.5.0 in central
[ivy:resolve] found javax.jdo#jdo2-api;2.3-eb in central
[ivy:resolve] found javax.transaction#transaction-api;1.1 in central
[ivy:resolve] found org.hibernate#hibernate-entitymanager;3.6.9.Final in central
[ivy:resolve] found org.hibernate#hibernate-core;3.6.9.Final in central
[ivy:resolve] found org.apache.openjpa#openjpa-persistence-jdbc;2.2.0 in central
[ivy:resolve] found org.apache.openjpa#openjpa-jdbc;2.2.0 in central
[ivy:resolve] found org.apache.openjpa#openjpa-kernel;2.2.0 in central
[ivy:resolve] found org.apache.openjpa#openjpa-lib;2.2.0 in central
[ivy:resolve] found commons-lang#commons-lang;2.4 in central
[ivy:resolve] found commons-collections#commons-collections;3.2.1 in central
[ivy:resolve] found net.sourceforge.serp#serp;1.13.1 in central
[ivy:resolve] found org.apache.geronimo.specs#geronimo-jms_1.1_spec;1.1.1 in central
[ivy:resolve] found org.apache.geronimo.specs#geronimo-jta_1.1_spec;1.1.1 in central
[ivy:resolve] found commons-pool#commons-pool;1.5.4 in central
[ivy:resolve] found asm#asm;3.2 in central
[ivy:resolve] found org.apache.openjpa#openjpa-persistence;2.2.0 in central
[ivy:resolve] found org.apache.geronimo.specs#geronimo-jpa_2.0_spec;1.1 in central
[ivy:resolve] found com.mysema.querydsl#querydsl-jpa;2.5.0 in central
[ivy:resolve] found org.slf4j#slf4j-log4j12;1.6.1 in central
[ivy:resolve] found log4j#log4j;1.2.16 in central
[ivy:resolve] found javax.enterprise#cdi-api;1.0 in central
[ivy:resolve] found org.jboss.interceptor#jboss-interceptor-api;1.1 in central
[ivy:resolve] found org.apache.derby#derbyclient;10.9.1.0 in central
[ivy:resolve] found org.slf4j#slf4j-log4j12;1.6.6 in central
[ivy:resolve] found org.slf4j#slf4j-api;1.6.6 in central
[ivy:resolve] found log4j#log4j;1.2.17 in central
[ivy:resolve] found org.bouncycastle#bcprov-jdk15on;1.47 in central
[ivy:resolve] found commons-cli#commons-cli;1.2 in central
[ivy:resolve] :: resolution report :: resolve 28230ms :: artifacts dl 770ms
[ivy:resolve] :: evicted modules:
[ivy:resolve] org.springframework#spring-core;[3.0.7.RELEASE, 4.0.0.RELEASE) by [org.springframework#spring-core;3.1.2.RELEASE] in [default]
[ivy:resolve] org.hibernate.javax.persistence#hibernate-jpa-2.0-api;1.0.0.Final by [org.hibernate.javax.persistence#hibernate-jpa-2.0-api;1.0.1.Final] in [default]
[ivy:resolve] org.slf4j#slf4j-api;1.5.8 by [org.slf4j#slf4j-api;1.6.1] in [default]
[ivy:resolve] log4j#log4j;1.2.16 by [log4j#log4j;1.2.17] in [default]
[ivy:resolve] org.apache.geronimo.specs#geronimo-jms_1.1_spec;1.1 by [org.apache.geronimo.specs#geronimo-jms_1.1_spec;1.1.1] in [default]
[ivy:resolve] asm#asm;3.0 by [asm#asm;3.2] in [default]
[ivy:resolve] javax.activation#activation;1.0.2 by [javax.activation#activation;1.1] in [default]
[ivy:resolve] org.springframework#spring-instrument;[3.0.7.RELEASE, 4.0.0.RELEASE) by [org.springframework#spring-instrument;3.1.2.RELEASE] in [default]
[ivy:resolve] org.apache.geronimo.specs#geronimo-jta_1.1_spec;1.1 by [org.apache.geronimo.specs#geronimo-jta_1.1_spec;1.1.1] in [default]
[ivy:resolve] junit#junit;3.8.1 by [junit#junit;3.8.2] in [default]
[ivy:resolve] org.slf4j#slf4j-api;1.6.1 by [org.slf4j#slf4j-api;1.6.6] in [default]
[ivy:resolve] org.slf4j#slf4j-log4j12;1.6.1 by [org.slf4j#slf4j-log4j12;1.6.6] in [default]
[ivy:resolve] org.springframework#spring-beans;[3.0.7.RELEASE, 4.0.0.RELEASE) by [org.springframework#spring-beans;3.1.2.RELEASE] in [default]
---------------------------------------------------------------------
| | modules || artifacts |
| conf | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
| default | 89 | 76 | 0 | 13 || 70 | 0 |
---------------------------------------------------------------------
[ivy:resolve] :: problems summary ::
[ivy:resolve] :::: WARNINGS
[ivy:resolve] module not found: org.springframework#spring-orm;[3.0.7.RELEASE, 4.0.0.RELEASE)
[ivy:resolve] ==== central: tried
[ivy:resolve] http://repo1.maven.org/maven2/org/springframework/spring-orm/[3.0.7.RELEASE, 4.0.0.RELEASE)/spring-orm-[3.0.7.RELEASE, 4.0.0.RELEASE).pom
[ivy:resolve] -- artifact org.springframework#spring-orm;[3.0.7.RELEASE, 4.0.0.RELEASE)!spring-orm.jar:
[ivy:resolve] http://repo1.maven.org/maven2/org/springframework/spring-orm/[3.0.7.RELEASE, 4.0.0.RELEASE)/spring-orm-[3.0.7.RELEASE, 4.0.0.RELEASE).jar
[ivy:resolve] ==== springsource: tried
[ivy:resolve] http://repo.springsource.org/release/org/springframework/spring-orm/[3.0.7.RELEASE, 4.0.0.RELEASE)/spring-orm-[3.0.7.RELEASE, 4.0.0.RELEASE).pom
[ivy:resolve] -- artifact org.springframework#spring-orm;[3.0.7.RELEASE, 4.0.0.RELEASE)!spring-orm.jar:
[ivy:resolve] http://repo.springsource.org/release/org/springframework/spring-orm/[3.0.7.RELEASE, 4.0.0.RELEASE)/spring-orm-[3.0.7.RELEASE, 4.0.0.RELEASE).jar
[ivy:resolve] module not found: org.springframework#spring-tx;[3.0.7.RELEASE, 4.0.0.RELEASE)
[ivy:resolve] ==== central: tried
[ivy:resolve] http://repo1.maven.org/maven2/org/springframework/spring-tx/[3.0.7.RELEASE, 4.0.0.RELEASE)/spring-tx-[3.0.7.RELEASE, 4.0.0.RELEASE).pom
[ivy:resolve] -- artifact org.springframework#spring-tx;[3.0.7.RELEASE, 4.0.0.RELEASE)!spring-tx.jar:
[ivy:resolve] http://repo1.maven.org/maven2/org/springframework/spring-tx/[3.0.7.RELEASE, 4.0.0.RELEASE)/spring-tx-[3.0.7.RELEASE, 4.0.0.RELEASE).jar
[ivy:resolve] ==== springsource: tried
[ivy:resolve] http://repo.springsource.org/release/org/springframework/spring-tx/[3.0.7.RELEASE, 4.0.0.RELEASE)/spring-tx-[3.0.7.RELEASE, 4.0.0.RELEASE).pom
[ivy:resolve] -- artifact org.springframework#spring-tx;[3.0.7.RELEASE, 4.0.0.RELEASE)!spring-tx.jar:
[ivy:resolve] http://repo.springsource.org/release/org/springframework/spring-tx/[3.0.7.RELEASE, 4.0.0.RELEASE)/spring-tx-[3.0.7.RELEASE, 4.0.0.RELEASE).jar
[ivy:resolve] module not found: com.mysema.querydsl#querydsl-codegen;${project.parent.version}
[ivy:resolve] ==== central: tried
[ivy:resolve] http://repo1.maven.org/maven2/com/mysema/querydsl/querydsl-codegen/${project.parent.version}/querydsl-codegen-${project.parent.version}.pom
[ivy:resolve] -- artifact com.mysema.querydsl#querydsl-codegen;${project.parent.version}!querydsl-codegen.jar:
[ivy:resolve] http://repo1.maven.org/maven2/com/mysema/querydsl/querydsl-codegen/${project.parent.version}/querydsl-codegen-${project.parent.version}.jar
[ivy:resolve] ==== springsource: tried
[ivy:resolve] http://repo.springsource.org/release/com/mysema/querydsl/querydsl-codegen/${project.parent.version}/querydsl-codegen-${project.parent.version}.pom
[ivy:resolve] -- artifact com.mysema.querydsl#querydsl-codegen;${project.parent.version}!querydsl-codegen.jar:
[ivy:resolve] http://repo.springsource.org/release/com/mysema/querydsl/querydsl-codegen/${project.parent.version}/querydsl-codegen-${project.parent.version}.jar
[ivy:resolve] module not found: org.springframework#spring-aspects;[3.0.7.RELEASE, 4.0.0.RELEASE)
[ivy:resolve] ==== central: tried
[ivy:resolve] http://repo1.maven.org/maven2/org/springframework/spring-aspects/[3.0.7.RELEASE, 4.0.0.RELEASE)/spring-aspects-[3.0.7.RELEASE, 4.0.0.RELEASE).pom
[ivy:resolve] -- artifact org.springframework#spring-aspects;[3.0.7.RELEASE, 4.0.0.RELEASE)!spring-aspects.jar:
[ivy:resolve] http://repo1.maven.org/maven2/org/springframework/spring-aspects/[3.0.7.RELEASE, 4.0.0.RELEASE)/spring-aspects-[3.0.7.RELEASE, 4.0.0.RELEASE).jar
[ivy:resolve] ==== springsource: tried
[ivy:resolve] http://repo.springsource.org/release/org/springframework/spring-aspects/[3.0.7.RELEASE, 4.0.0.RELEASE)/spring-aspects-[3.0.7.RELEASE, 4.0.0.RELEASE).pom
[ivy:resolve] -- artifact org.springframework#spring-aspects;[3.0.7.RELEASE, 4.0.0.RELEASE)!spring-aspects.jar:
[ivy:resolve] http://repo.springsource.org/release/org/springframework/spring-aspects/[3.0.7.RELEASE, 4.0.0.RELEASE)/spring-aspects-[3.0.7.RELEASE, 4.0.0.RELEASE).jar
[ivy:resolve] module not found: com.mysema.querydsl#querydsl-core;${project.parent.version}
[ivy:resolve] ==== central: tried
[ivy:resolve] http://repo1.maven.org/maven2/com/mysema/querydsl/querydsl-core/${project.parent.version}/querydsl-core-${project.parent.version}.pom
[ivy:resolve] -- artifact com.mysema.querydsl#querydsl-core;${project.parent.version}!querydsl-core.jar:
[ivy:resolve] http://repo1.maven.org/maven2/com/mysema/querydsl/querydsl-core/${project.parent.version}/querydsl-core-${project.parent.version}.jar
[ivy:resolve] ==== springsource: tried
[ivy:resolve] http://repo.springsource.org/release/com/mysema/querydsl/querydsl-core/${project.parent.version}/querydsl-core-${project.parent.version}.pom
[ivy:resolve] -- artifact com.mysema.querydsl#querydsl-core;${project.parent.version}!querydsl-core.jar:
[ivy:resolve] http://repo.springsource.org/release/com/mysema/querydsl/querydsl-core/${project.parent.version}/querydsl-core-${project.parent.version}.jar
[ivy:resolve] [NOT FOUND ] javax.jws#jsr181;1.0!jsr181.jar (160ms)
[ivy:resolve] ==== central: tried
[ivy:resolve] http://repo1.maven.org/maven2/javax/jws/jsr181/1.0/jsr181-1.0.jar
[ivy:resolve] [NOT FOUND ] org.apache.geronimo.specs#geronimo-jpa_2.0_spec;1.1!geronimo-jpa_2.0_spec.bundle (360ms)
[ivy:resolve] ==== central: tried
[ivy:resolve] http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-jpa_2.0_spec/1.1/geronimo-jpa_2.0_spec-1.1.bundle
[ivy:resolve] [NOT FOUND ] log4j#log4j;1.2.17!log4j.bundle (160ms)
[ivy:resolve] ==== central: tried
[ivy:resolve] http://repo1.maven.org/maven2/log4j/log4j/1.2.17/log4j-1.2.17.bundle
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] :: UNRESOLVED DEPENDENCIES ::
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] :: org.springframework#spring-aspects;[3.0.7.RELEASE, 4.0.0.RELEASE): not found
[ivy:resolve] :: com.mysema.querydsl#querydsl-core;${project.parent.version}: not found
[ivy:resolve] :: org.springframework#spring-orm;[3.0.7.RELEASE, 4.0.0.RELEASE): not found
[ivy:resolve] :: com.mysema.querydsl#querydsl-codegen;${project.parent.version}: not found
[ivy:resolve] :: org.springframework#spring-tx;[3.0.7.RELEASE, 4.0.0.RELEASE): not found
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] :: FAILED DOWNLOADS ::
[ivy:resolve] :: ^ see resolution messages for details ^ ::
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] :: javax.jws#jsr181;1.0!jsr181.jar
[ivy:resolve] :: org.apache.geronimo.specs#geronimo-jpa_2.0_spec;1.1!geronimo-jpa_2.0_spec.bundle
[ivy:resolve] :: log4j#log4j;1.2.17!log4j.bundle
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::

Blockchain doesn't catch up

Hi,

after starting the server (leveldb, production), it connects to few nodes, download few thousands of blocks and then it stops syncing, no matter how log I wait.

2013-11-24 23:12:15,779 [DEBUG] CachedBlockStore Peer-thread-2 stored block 83288 000000000016ba320ad960dbd7aca7ebedd60e9cf8c8c8ae59760a6638a6d3cf
2013-11-24 23:12:15,779 [DEBUG] TxHandler Peer-thread-2 Removing 0 blocks
2013-11-24 23:12:15,779 [DEBUG] TxHandler Peer-thread-2 Pool size: 0
2013-11-24 23:12:15,779 [DEBUG] TxHandler Peer-thread-2 Adding 1 blocks
2013-11-24 23:12:15,779 [DEBUG] TxHandler Peer-thread-2 First seen in block: 819c95081d1e024df558211ea1680f7fded2c9614b7bf7428dbe5068bd67a966
2013-11-24 23:12:15,779 [DEBUG] TxHandler Peer-thread-2 Pool size: 0
2013-11-24 23:12:15,779 [DEBUG] ChainLoader Peer-thread-2 received block 000000000019d675d5b971a150c84a2dee43db5d8274e57d030e2875803fabcf from xxxxx/xxxxxxx:8333
2013-11-24 23:12:15,780 [DEBUG] CachedBlockStore Peer-thread-2 stored block 83289 000000000019d675d5b971a150c84a2dee43db5d8274e57d030e2875803fabcf
2013-11-24 23:12:32,400 [INFO] BitcoinPeer Peer-thread-7 Disconnected 'null' at xxxxx/xxxxxx:8333
2013-11-24 23:12:35,191 [INFO] BitcoinPeer Peer-thread-3 Disconnected '/Satoshi:0.8.3/' at xxxxxx/xxxxx:8333
2013-11-24 23:12:35,409 [INFO] BitcoinPeer Peer-thread-6 Disconnected 'null' at xxxxx/xxxxx:8333
2013-11-24 23:12:46,733 [INFO] BitcoinPeer Peer-thread-8 Disconnected 'null' at xxxxxxx/xxxxx:8333

  • That machine is on fiber optic so I don't expect local connection issues.
  • It does every time I stop and start server again
  • I see lot of disconnection messages, but there're still some open connections in netstat
  • I tried to raise open files limit to 40000, no difference

So far it looks like the node is misbehaving somehow, so it is banned by "new" ddos protection by other nodes. However I don't have any idea how to measure/debug that.

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.