Commit 7169643d authored by Richard Green's avatar Richard Green Committed by Mike Hearn

Renamed params variable to use correct source library; removed traceback usage...

Renamed params variable to use correct source library; removed traceback usage to be compatible with jython 2.5
parent ef4afe8e
......@@ -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(".")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment