mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-07-31 20:11:23 +00:00
Fix the getBlock() method to use the correct message type.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user