我需要从一个骑行脚本中知道区块链的当前高度,并将目前的高度加到一个星期左右的高度。我试过这个:
let currentHeight = transactionHeightById(i.transactionId)
let finishHeight = currentHeight + (7*1440)这是正确/最好的方法吗?同样,当我试图获得finishHeight时,我会得到以下错误:
编译失败:找不到952-974中的函数过载‘+’(Int\Int,Int)
发布于 2019-08-10 17:32:04
目前波阻链高度在平顺中包含在可变高度中。因此,为了了解当前的高度并将大约一周的时间(在高度中)添加到其中:
[...]
else if (contestStartHeight <= height) then throw("Start Height must be greater than current Blockchain height: " + toString(height))
else {
let contestFinishHeight = contestStartHeight + (7*1440)
}
[...]https://stackoverflow.com/questions/57444014
复制相似问题