src/main/java/toy/blockchain/Blockchain.java
/**
     * Add block to the head of the chain.
     * @param b the block to add
     */
Add block to the head of the chain.
@param b the block to add
Add block to the head of the chain . @param b the block to add
public void addBlock(Types.Block b) {
        synchronized (blocks) {
            blocks.add(b);
        }
    }
public void addBlock ( Types . Block b ) { synchronized ( blocks ) { blocks . add ( b ) ; } }
Add block to the head of the chain.
Add block to the head of the chain .