src/main/java/toy/servers/ToyBaseServer_old.java
/**
     * Deliver the index_th block and blocks the calling thread
     * @param index the index of the block to return
     * @return the block in height <i>index</i>
     * @throws InterruptedException
     */
Deliver the index_th block and blocks the calling thread
@param index the index of the block to return
@return the block in height index
@throws InterruptedException
Deliver the index_th block and blocks the calling thread @param index the index of the block to return @return the block in height index @throws InterruptedException
public Types.Block deliver(int index) throws InterruptedException {
        synchronized (newBlockNotifyer) {
            while (index >= bc.getHeight() - (f + 1)) {
                newBlockNotifyer.wait();
            }
        }
        return bc.getBlock(index);
    }
public Types . Block deliver ( int index ) throws InterruptedException { synchronized ( newBlockNotifyer ) { while ( index >= bc . getHeight ( ) - ( f + 1 ) ) { newBlockNotifyer . wait ( ) ; } } return bc . getBlock ( index ) ; }
Deliver the index_th block and blocks the calling thread
 @param index the index of the block to return
 @return the block in height <i>index</i>
 @throws InterruptedException
Deliver the index_th block and blocks the calling thread @param index the index of the block to return @return the block in height <i > index< / i > @throws InterruptedException