mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-07-31 12:01:24 +00:00
Update forwarding.py
removed commented code that served no purpose.
This commit is contained in:
committed by
Mike Hearn
parent
17d8ac8d74
commit
3a23bb5ecd
@@ -27,8 +27,6 @@ from com.google.common.util.concurrent import Futures
|
||||
|
||||
import java.io.File
|
||||
|
||||
#import traceback,sys
|
||||
|
||||
import sys
|
||||
|
||||
def loud_exceptions(*args):
|
||||
@@ -37,11 +35,9 @@ def loud_exceptions(*args):
|
||||
try:
|
||||
func(*args, **kwargs)
|
||||
except Exception, e:
|
||||
# traceback.print_exc()
|
||||
print "** python exception ",e
|
||||
raise
|
||||
except java.lang.Exception,e:
|
||||
# traceback.print_exc()
|
||||
print "** java exception",e
|
||||
raise
|
||||
return wrapper
|
||||
@@ -55,7 +51,6 @@ def loud_exceptions(*args):
|
||||
def forwardCoins(tx,w,pg,addr):
|
||||
v = tx.getValueSentToMe(w)
|
||||
amountToSend = v.subtract(Transaction.REFERENCE_DEFAULT_MIN_TX_FEE)
|
||||
# v_bigint = java.math.BigInteger(str(v))
|
||||
sr = w.sendCoins(pg, addr, amountToSend)
|
||||
|
||||
class SenderListener(AbstractWalletEventListener):
|
||||
|
Reference in New Issue
Block a user