mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-11-03 05:57:21 +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
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
public Future<Block> getBlock(Sha256Hash blockHash) 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);
|
InventoryItem inventoryItem = new InventoryItem(InventoryItem.Type.Block, blockHash);
|
||||||
getdata.addItem(inventoryItem);
|
getdata.addItem(inventoryItem);
|
||||||
GetDataFuture<Block> future = new GetDataFuture<Block>(inventoryItem);
|
GetDataFuture<Block> future = new GetDataFuture<Block>(inventoryItem);
|
||||||
|
|||||||
Reference in New Issue
Block a user