mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-03-10 00:09:31 +01:00
Renamed params variable to use correct source library; removed traceback usage to be compatible with jython 2.5
This commit is contained in:
parent
ef4afe8e1c
commit
7169643d1c
1 changed files with 7 additions and 5 deletions
|
@ -6,7 +6,7 @@ __author__ = "richard 'ragmondo' green"
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Change this to point to where you have a copy of the bitcoinj.jar
|
# 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)
|
# This is the address to forward all payments to. Change this (unless you want to send me some testnet coins)
|
||||||
my_address_text = "mzEjmna15T7DXj4HC9MBEG2UJzgFfEYtFo"
|
my_address_text = "mzEjmna15T7DXj4HC9MBEG2UJzgFfEYtFo"
|
||||||
|
@ -27,7 +27,9 @@ from com.google.common.util.concurrent import Futures
|
||||||
|
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
||||||
import traceback,sys
|
#import traceback,sys
|
||||||
|
|
||||||
|
import sys
|
||||||
|
|
||||||
def loud_exceptions(*args):
|
def loud_exceptions(*args):
|
||||||
def _trace(func):
|
def _trace(func):
|
||||||
|
@ -35,11 +37,11 @@ def loud_exceptions(*args):
|
||||||
try:
|
try:
|
||||||
func(*args, **kwargs)
|
func(*args, **kwargs)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
traceback.print_exc()
|
# traceback.print_exc()
|
||||||
print "** python exception ",e
|
print "** python exception ",e
|
||||||
raise
|
raise
|
||||||
except java.lang.Exception,e:
|
except java.lang.Exception,e:
|
||||||
traceback.print_exc()
|
# traceback.print_exc()
|
||||||
print "** java exception",e
|
print "** java exception",e
|
||||||
raise
|
raise
|
||||||
return wrapper
|
return wrapper
|
||||||
|
@ -76,7 +78,7 @@ class SenderListener(AbstractWalletEventListener):
|
||||||
Futures.addCallback(tx.getConfidence().getDepthFuture(confirm_wait), myFutureCallback())
|
Futures.addCallback(tx.getConfidence().getDepthFuture(confirm_wait), myFutureCallback())
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
params = com.google.bitcoin.params.TestNet3Params.get()
|
params = org.bitcoinj.params.TestNet3Params.get()
|
||||||
my_address = Address(params,my_address_text)
|
my_address = Address(params,my_address_text)
|
||||||
filePrefix = "forwarding-service-testnet"
|
filePrefix = "forwarding-service-testnet"
|
||||||
f = java.io.File(".")
|
f = java.io.File(".")
|
||||||
|
|
Loading…
Add table
Reference in a new issue