diff --git a/examples/src/main/python/forwarding.py b/examples/src/main/python/forwarding.py index 09bc2c65..d8ceb467 100644 --- a/examples/src/main/python/forwarding.py +++ b/examples/src/main/python/forwarding.py @@ -6,7 +6,7 @@ __author__ = "richard 'ragmondo' green" import sys # Change this to point to where you have a copy of the bitcoinj.jar -sys.path.append(r"/path/to/bitcoinj-0.12-SNAPSHOT-bundled.jar") +sys.path.append(r"/home/richard/code/libs/bitcoinj-core-0.12-bundled.jar") # This is the address to forward all payments to. Change this (unless you want to send me some testnet coins) my_address_text = "mzEjmna15T7DXj4HC9MBEG2UJzgFfEYtFo" @@ -27,7 +27,9 @@ from com.google.common.util.concurrent import Futures import java.io.File -import traceback,sys +#import traceback,sys + +import sys def loud_exceptions(*args): def _trace(func): @@ -35,11 +37,11 @@ def loud_exceptions(*args): try: func(*args, **kwargs) except Exception, e: - traceback.print_exc() + # traceback.print_exc() print "** python exception ",e raise except java.lang.Exception,e: - traceback.print_exc() + # traceback.print_exc() print "** java exception",e raise return wrapper @@ -76,7 +78,7 @@ class SenderListener(AbstractWalletEventListener): Futures.addCallback(tx.getConfidence().getDepthFuture(confirm_wait), myFutureCallback()) if __name__ == "__main__": - params = com.google.bitcoin.params.TestNet3Params.get() + params = org.bitcoinj.params.TestNet3Params.get() my_address = Address(params,my_address_text) filePrefix = "forwarding-service-testnet" f = java.io.File(".")