diff --git a/src/komodo_nSPV_superlite.h b/src/komodo_nSPV_superlite.h index 301dc9a2c..982e751cf 100644 --- a/src/komodo_nSPV_superlite.h +++ b/src/komodo_nSPV_superlite.h @@ -21,6 +21,9 @@ // no caching, no optimizations, no reducing the number of ntzsproofs needed by detecting overlaps, etc. // advantage is that it is simpler to implement and understand to create a design for a more performant version +// interest calculations are currently just using what is returned, it should calculate it from scratch +// need to validate incoming data and update only if it is valid and more recent + #define NSPV_POLLITERS 15 #define NSPV_POLLMICROS 100000 #define NSPV_MAXVINS 64 diff --git a/src/komodo_nSPV_wallet.h b/src/komodo_nSPV_wallet.h index 3f4a4ec5b..bada2cb33 100644 --- a/src/komodo_nSPV_wallet.h +++ b/src/komodo_nSPV_wallet.h @@ -18,7 +18,7 @@ #define KOMODO_NSPVWALLET_H // nSPV wallet uses superlite functions (and some komodod built in functions) to implement nSPV_send -// interest calculations are currently just using what is returned, it should calculate it from scratch + #define NSPV_AUTOLOGOUT 60 #define NSPV_BRANCHID 0x76b809bb @@ -246,7 +246,7 @@ UniValue NSPV_send(char *srcaddr,char *destaddr,int64_t satoshis) // what its al { result.push_back(Pair("result","error")); result.push_back(Pair("address",NSPV_utxosresult.coinaddr)); - result.push_back(Pair("srcaddr",srcaddr.coinaddr)); + result.push_back(Pair("srcaddr",srcaddr)); result.push_back(Pair("nodeheight",(int64_t)NSPV_utxosresult.nodeheight)); result.push_back(Pair("infoheight",(int64_t)NSPV_inforesult.height)); result.push_back(Pair("error","couldnt get addressutxos"));