Adding a getter to the Transaction's blockData attribute

This commit is contained in:
Nelson R. Perez 2018-01-25 18:04:26 -05:00
parent 9af682f0cb
commit f186bbe7b9

View file

@ -100,13 +100,21 @@ public class Transaction implements ByteSerializable, JsonSerializable {
}
/**
* Updates the block data
* Block data getter
* @param blockData New block data
*/
public void setBlockData(BlockData blockData){
this.blockData = blockData;
}
/**
* Block data setter
* @return BlockData instance
*/
public BlockData getBlockData(){
return this.blockData;
}
/**
* Updates the fees for all operations in this transaction.
* @param fees: New fees to apply