Package org.ethereum.net.submit

Examples of org.ethereum.net.submit.WalletTransaction


     * @param transaction
     * @return
     */
    public WalletTransaction addByWalletTransaction(Transaction transaction){
        String hash = Hex.toHexString(transaction.getHash());
        WalletTransaction walletTransaction = new WalletTransaction(transaction);
        this.walletTransactions.put(hash, walletTransaction);

        return walletTransaction;
    }
View Full Code Here


     */
    public WalletTransaction addTransaction(Transaction transaction) {
        String hash = Hex.toHexString(transaction.getHash());
        logger.info("pending transaction placed hash: {}", hash );

        WalletTransaction walletTransaction =  this.walletTransactions.get(hash);
    if (walletTransaction != null)
      walletTransaction.incApproved();
    else {
      walletTransaction = new WalletTransaction(transaction);
      this.walletTransactions.put(hash, walletTransaction);
    }

        this.applyTransaction(transaction);

View Full Code Here

TOP

Related Classes of org.ethereum.net.submit.WalletTransaction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.