mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-14 11:15:51 +00:00
Fix the getBlock() method to use the correct message type.
This commit is contained in:
parent
1f5922b2f4
commit
062ad32851
@ -197,7 +197,7 @@ public class Peer {
|
||||
* @throws IOException
|
||||
*/
|
||||
public Future<Block> getBlock(Sha256Hash blockHash) throws IOException {
|
||||
InventoryMessage getdata = new InventoryMessage(params);
|
||||
GetDataMessage getdata = new GetDataMessage(params);
|
||||
InventoryItem inventoryItem = new InventoryItem(InventoryItem.Type.Block, blockHash);
|
||||
getdata.addItem(inventoryItem);
|
||||
GetDataFuture<Block> future = new GetDataFuture<Block>(inventoryItem);
|
||||
|
Loading…
x
Reference in New Issue
Block a user