src/main/Blockchain.java
public void printTransactions(){
        System.out.println("\n--------Full Blockchain Transactions--------");
        for (Block block : blockChain){
            for(Transaction t : block.transactions){
                System.out.println("From: " + StringUtil.getStringFromKey(t.sender) + ", To: " + StringUtil.getStringFromKey(t.reciepient));
                System.out.println("Value: " + t.value);
            }
        }
    }
// Loop through all blocks and print out all transactions from each
Loop through all blocks and print out all transactions from each
Loop through all blocks and print out all transactions from each
public void printTransactions(){
        System.out.println("\n--------Full Blockchain Transactions--------");
        for (Block block : blockChain){
            for(Transaction t : block.transactions){
                System.out.println("From: " + StringUtil.getStringFromKey(t.sender) + ", To: " + StringUtil.getStringFromKey(t.reciepient));
                System.out.println("Value: " + t.value);
            }
        }
    }
public void printTransactions ( ) { System . out . println ( "\n--------Full Blockchain Transactions--------" ) ; for ( Block block : blockChain ) { for ( Transaction t : block . transactions ) { System . out . println ( "From: " + StringUtil . getStringFromKey ( t . sender ) + ", To: " + StringUtil . getStringFromKey ( t . reciepient ) ) ; System . out . println ( "Value: " + t . value ) ; } } }
Loop through all blocks and print out all transactions from each
Loop through all blocks and print out all transactions from each