mirror of
https://github.com/jwinterm/lightWallet.git
synced 2026-10-19 05:28:32 +02:00
Fixed transaction history, calculated balance, few GUI things, and limit file names and paths to standard ascii.
This commit is contained in:
+2
-2
@@ -10,7 +10,7 @@ payload = json.dumps({
|
||||
})
|
||||
|
||||
|
||||
def CheckBalanceSimplewallet():
|
||||
def checkBalanceSimplewallet():
|
||||
"""function to make rpc call to simplewallet to get current balance"""
|
||||
# print 'Attempting {0} RPC call'.format(CheckBalanceSimplewallet.__name__)
|
||||
try:
|
||||
@@ -33,4 +33,4 @@ def CheckBalanceSimplewallet():
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
print CheckBalanceSimplewallet()
|
||||
print checkBalanceSimplewallet()
|
||||
@@ -16,7 +16,7 @@ payload = json.dumps({
|
||||
})
|
||||
|
||||
|
||||
def CheckLastBlock(serverURL=default_URL):
|
||||
def checkLastBlock(serverURL=default_URL):
|
||||
"""Try and get last block info and return formatted text"""
|
||||
# print('Attempting {0} RPC call'.format(CheckLastBlock.__name__))
|
||||
try:
|
||||
@@ -40,4 +40,4 @@ def CheckLastBlock(serverURL=default_URL):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
CheckLastBlock()
|
||||
checkLastBlock()
|
||||
@@ -5,7 +5,7 @@ from ctypes import c_uint64
|
||||
serverURL = 'http://localhost:19091/json_rpc'
|
||||
|
||||
|
||||
def transferfundsrpccall(amount, address, mixin, paymentid):
|
||||
def transferFundsRPCCall(amount, address, mixin, paymentid):
|
||||
"""function to transfer funds to a single address"""
|
||||
atomicamount = c_uint64(int((float(amount)*1e12)))
|
||||
address = str(address)
|
||||
@@ -61,4 +61,4 @@ def transferfundsrpccall(amount, address, mixin, paymentid):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
transferfundsrpccall()
|
||||
transferFundsRPCCall()
|
||||
Reference in New Issue
Block a user