Пример #1
0
def test_xfer_public_txn_equal():
    TokenReqHandler._validate_xfer_public_txn(None, 1, 1)
    TokenReqHandler._validate_xfer_public_txn(None, 10, 10)
    TokenReqHandler._validate_xfer_public_txn(None, 100, 100)
    TokenReqHandler._validate_xfer_public_txn(None, 100000000000000,
                                              100000000000000)
    TokenReqHandler._validate_xfer_public_txn(None, 9223372036854775807,
                                              9223372036854775807)
    TokenReqHandler._validate_xfer_public_txn(None, 9223372036854775807000,
                                              9223372036854775807000)
 def post_batch_rejected(self, ledger_id):
     if self.fee_txns_in_current_batch > 0:
         TokenReqHandler.on_batch_rejected(self.utxo_cache)
         self.fee_txns_in_current_batch = 0
Пример #3
0
 def post_batch_rejected(self, ledger_id):
     count_reverted = TokenReqHandler.on_batch_rejected(
         self.utxo_cache, self.token_tracker, self.token_state,
         self.token_ledger)
     self.fee_txns_in_current_batch = 0
     logger.debug("Reverted {} txns with fees".format(count_reverted))