mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-15 11:45: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
|
* @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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user