3
0
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:
Mike Hearn 2011-07-06 13:40:54 +00:00
parent 1f5922b2f4
commit 062ad32851

View File

@ -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);