string "sec" (seconds) added to heirinfo
This commit is contained in:
@@ -1184,13 +1184,13 @@ UniValue HeirInfo(uint256 fundingtxid)
|
|||||||
}
|
}
|
||||||
|
|
||||||
stream << inactivityTimeSec;
|
stream << inactivityTimeSec;
|
||||||
result.push_back(Pair("inactivity time setting", stream.str().c_str()));
|
result.push_back(Pair("inactivity time setting, sec", stream.str().c_str()));
|
||||||
stream.str("");
|
stream.str("");
|
||||||
stream.clear();
|
stream.clear();
|
||||||
|
|
||||||
if (!hasHeirSpendingBegun) { // we do not need find duration if the spending already has begun
|
if (!hasHeirSpendingBegun) { // we do not need find duration if the spending already has begun
|
||||||
durationSec = CCduration(numblocks, latestFundingTxid);
|
durationSec = CCduration(numblocks, latestFundingTxid);
|
||||||
std::cerr << "HeirInfo() duration=" << durationSec << " inactivityTime=" << inactivityTimeSec << " numblocks=" << numblocks << '\n';
|
std::cerr << "HeirInfo() duration (sec)=" << durationSec << " inactivityTime (sec)=" << inactivityTimeSec << " numblocks=" << numblocks << '\n';
|
||||||
}
|
}
|
||||||
|
|
||||||
stream << std::boolalpha << (hasHeirSpendingBegun || durationSec > inactivityTimeSec);
|
stream << std::boolalpha << (hasHeirSpendingBegun || durationSec > inactivityTimeSec);
|
||||||
@@ -1201,7 +1201,7 @@ UniValue HeirInfo(uint256 fundingtxid)
|
|||||||
// adding owner current inactivity time:
|
// adding owner current inactivity time:
|
||||||
if (!hasHeirSpendingBegun && durationSec <= inactivityTimeSec) {
|
if (!hasHeirSpendingBegun && durationSec <= inactivityTimeSec) {
|
||||||
stream << durationSec;
|
stream << durationSec;
|
||||||
result.push_back(Pair("owner inactivity time", stream.str().c_str()));
|
result.push_back(Pair("owner inactivity time, sec", stream.str().c_str()));
|
||||||
stream.str("");
|
stream.str("");
|
||||||
stream.clear();
|
stream.clear();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user