init batontxid

added checks for rpc
This commit is contained in:
dimxy
2019-04-15 22:15:12 +05:00
parent 5c349ea415
commit 505619e202
2 changed files with 9 additions and 1 deletions

View File

@@ -471,6 +471,8 @@ int64_t prices_batontxid(uint256 &batontxid,CTransaction bettx,uint256 bettxid)
int32_t height;
int32_t retcode;
batontxid = bettxid; // initially set to the source bet tx
// iterate through batons, adding up vout1 -> addedbets
while ((retcode = CCgetspenttxid(batontxid, vini, height, bettxid, 1)) == 0) {