3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-31 07:12:17 +00:00

Renamed params variable to use correct source library; removed traceback usage to be compatible with jython 2.5

This commit is contained in:
Richard 'ragmondo' Green 2014-10-11 22:43:30 +01:00 committed by Mike Hearn
parent ef4afe8e1c
commit 7169643d1c

View File

@ -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(".")