io.nuls.kernel.model.Transaction.getTime()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(99)

本文整理了Java中io.nuls.kernel.model.Transaction.getTime()方法的一些代码示例,展示了Transaction.getTime()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Transaction.getTime()方法的具体详情如下:
包路径:io.nuls.kernel.model.Transaction
类名称:Transaction
方法名:getTime

Transaction.getTime介绍

暂无

代码示例

代码示例来源:origin: nuls-io/nuls

public TransactionInfoPo(Transaction tx) {
  if (tx == null) {
    return;
  }
  this.txHash = tx.getHash();
  this.blockHeight = tx.getBlockHeight();
  this.time = tx.getTime();
  List<byte[]> addressList = tx.getAllRelativeAddress();
  byte[] addresses = new byte[addressList.size() * Address.ADDRESS_LENGTH];
  for (int i = 0; i < addressList.size(); i++) {
    System.arraycopy(addressList.get(i), 0, addresses, Address.ADDRESS_LENGTH* i, Address.ADDRESS_LENGTH);
  }
  this.addresses = addresses;
  this.txType = tx.getType();
}

代码示例来源:origin: nuls-io/nuls

public TransactionInfoPo(Transaction tx) {
  if (tx == null) {
    return;
  }
  this.txHash = tx.getHash();
  this.blockHeight = tx.getBlockHeight();
  this.time = tx.getTime();
  List<byte[]> addressList = tx.getAllRelativeAddress();
  byte[] addresses = new byte[addressList.size() * Address.ADDRESS_LENGTH];
  for (int i = 0; i < addressList.size(); i++) {
    System.arraycopy(addressList.get(i), 0, addresses, Address.ADDRESS_LENGTH * i, Address.ADDRESS_LENGTH);
  }
  this.addresses = addresses;
  this.txType = tx.getType();
}

代码示例来源:origin: nuls-io/nuls

public UtxoDto(Coin coin, Transaction tx) {
  this.txHash = tx.getHash().getDigestHex();
  this.createTime = tx.getTime();
  this.txType = tx.getType();
  this.lockTime = coin.getLockTime();
  this.value = coin.getNa().getValue();
}

代码示例来源:origin: nuls-io/nuls

boolean hashRight = NulsDigestData.calcDigestData(tx.serializeForHash()).equals(tx.getHash());
if (result.isSuccess() && hashRight) {
  if (TimeService.currentTimeMillis() - tx.getTime() < 300000L) {
    return;

代码示例来源:origin: nuls-io/nuls

return 0;
if (o1.getTime() < o2.getTime()) {
  return -1;
} else if (o1.getTime() > o2.getTime()) {
  return 1;
} else {

代码示例来源:origin: nuls-io/nuls

break;
if (tx.getTime() == 0) {
  result = false;
  break;

代码示例来源:origin: nuls-io/nuls

processOrphanTx(tx);
} else if (isOrphanTx) {
  return tx.getTime() < (TimeService.currentTimeMillis() - 3600000L);

代码示例来源:origin: nuls-io/nuls

return Result.getFailed(ContractErrorCode.TX_NOT_EXIST).toRpcClientResult();
po.setCreateTime(tx.getTime());
collectorMap = MapUtil.createHashMap(4);
collectorMap.put(address, EMPTY);

代码示例来源:origin: nuls-io/nuls

this.hash = tx.getHash().getDigestHex();
this.type = tx.getType();
this.time = tx.getTime();
this.blockHeight = tx.getBlockHeight();
this.fee = tx.getFee().getValue();

代码示例来源:origin: nuls-io/nuls

this.hash = tx.getHash().getDigestHex();
this.type = tx.getType();
this.time = tx.getTime();
this.blockHeight = tx.getBlockHeight();
this.fee = tx.getFee().getValue();

代码示例来源:origin: nuls-io/nuls

this.hash = tx.getHash().getDigestHex();
this.type = tx.getType();
this.time = tx.getTime();
this.blockHeight = tx.getBlockHeight();
this.fee = tx.getFee().getValue();

代码示例来源:origin: nuls-io/nuls

po.setHeight(height);
po.setRoundIndex(extendsData.getRoundIndex());
po.setTime(tx.getTime());
po.setType(PunishType.RED.getCode());
redList.add(po);
  po.setHeight(height);
  po.setRoundIndex(extendsData.getRoundIndex());
  po.setTime(tx.getTime());
  po.setType(PunishType.YELLOW.getCode());
  yellowList.add(po);

代码示例来源:origin: nuls-io/nuls

this.hash = tx.getHash().getDigestHex();
this.type = tx.getType();
this.time = tx.getTime();
this.blockHeight = tx.getBlockHeight();
this.fee = tx.getFee().getValue();

代码示例来源:origin: nuls-io/nuls

tokenTransferInfoPo.setSymbol(contractAddressInfo.getNrc20TokenSymbol());
tokenTransferInfoPo.setDecimals(contractAddressInfo.getDecimals());
tokenTransferInfoPo.setTime(tx.getTime());
tokenTransferInfoPo.setBlockHeight(tx.getBlockHeight());
txHashBytes = tx.getHash().serialize();

相关文章