mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-01-31 07:12:17 +00:00
GetDataMessage: add utilities
This commit is contained in:
parent
ecec739438
commit
ec320ecfd5
@ -55,4 +55,12 @@ public class GetDataMessage extends ListMessage {
|
||||
public void addBlock(Sha256Hash hash) {
|
||||
addItem(new InventoryItem(InventoryItem.Type.Block, hash));
|
||||
}
|
||||
|
||||
public void addFilteredBlock(Sha256Hash hash) {
|
||||
addItem(new InventoryItem(InventoryItem.Type.FilteredBlock, hash));
|
||||
}
|
||||
|
||||
public Sha256Hash getHashOf(int i) {
|
||||
return getItems().get(i).hash;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user