Adding a getter to the Transaction's blockData attribute

develop
Nelson R. Perez 2018-01-25 18:04:26 -05:00
parent 9af682f0cb
commit f186bbe7b9
1 changed files with 9 additions and 1 deletions

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