diff --git a/IxianDLT/Block/BlockProcessor.cs b/IxianDLT/Block/BlockProcessor.cs index 6707ea3..c0016cd 100644 --- a/IxianDLT/Block/BlockProcessor.cs +++ b/IxianDLT/Block/BlockProcessor.cs @@ -4131,28 +4131,5 @@ public ulong determineHighestNetworkBlockNum() } return netBh; } - - public BlockSignature updateBlockSignature() - { - lock (localBlockLock) - { - if (localNewBlock == null) - { - return null; - } - - BlockSignature signatureData = localNewBlock.applySignature(PresenceList.getPowSolution()); - if (signatureData == null) - { - Logging.error("Could not update block signature {0}.", localNewBlock.blockNum); - return null; - } - - Node.inventoryCache.setProcessedFlag(InventoryItemTypes.blockSignature, InventoryItemSignature.getHash(signatureData.recipientPubKeyOrAddress.addressNoChecksum, localNewBlock.blockChecksum), true); - SignatureProtocolMessages.broadcastBlockSignature(signatureData, localNewBlock.blockNum, localNewBlock.blockChecksum, null, null); - - return signatureData; - } - } } } diff --git a/IxianDLT/Miner/SignerPowMiner.cs b/IxianDLT/Miner/SignerPowMiner.cs index fa83e2d..4c53a1c 100644 --- a/IxianDLT/Miner/SignerPowMiner.cs +++ b/IxianDLT/Miner/SignerPowMiner.cs @@ -394,7 +394,7 @@ private void sendFoundSolution() } PresenceList.setPowSolution(newSolution); - Node.blockProcessor.updateBlockSignature(); + Node.blockProcessor.acceptLocalNewBlock(); } } }