示例#1
0
 def GetUnavailableBonus(self):
     """
     Gets the total claimable amount of Gas in the wallet that is not available to claim
     because it has not yet been spent
     Returns:
         Fixed8: the amount of Gas unavailable to claim
     """
     height = Blockchain.Default().Height + 1
     unspents = self.FindUnspentCoinsByAsset(Blockchain.SystemShare().Hash)
     refs = [coin.Reference for coin in unspents]
     unavailable_bonus = Blockchain.CalculateBonus(refs, height_end=height)
     return unavailable_bonus