Browse Source

Add more test main code

rust-port
garritfra 6 years ago
parent
commit
3ea75f7946
  1. 6
      src/main.rs

6
src/main.rs

@ -10,8 +10,12 @@ fn main() {
blockchain.mine_block();
for block in blockchain.get_blocks() {
println!("Block:");
for transaction in &block.transactions {
println!("{}", transaction.from);
println!(
"Transaction from {} to {} with amount {}",
transaction.from, transaction.to, transaction.amount
);
}
}
}

Loading…
Cancel
Save