Skip to content

Commit

Permalink
chore: remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
HashEngineering committed Jan 22, 2025
1 parent 495f817 commit bf69b15
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 59 deletions.
51 changes: 0 additions & 51 deletions core/src/main/java/org/bitcoinj/core/Peer.java
Original file line number Diff line number Diff line change
Expand Up @@ -1455,57 +1455,6 @@ protected void processInv(InventoryMessage inv) {
}
}

// The New InstantSendLock (ISLOCK)
// if(context.instantSendManager != null && context.instantSendManager.isInstantSendEnabled() &&
// context.masternodeSync != null && context.masternodeSync.hasSyncFlag(MasternodeSync.SYNC_FLAGS.SYNC_INSTANTSENDLOCKS)) {
// it = instantSendLocks.iterator();
// while (it.hasNext()) {
// InventoryItem item = it.next();
// if(!alreadyHave(item)) {
// getdata.addItem(item);
// }
// }
// }

// The ChainLock (CLSIG)
// if(/*context.sporkManager != null && context.sporkManager.isSporkActive(SporkManager.SPORK_19_CHAINLOCKS_ENABLED) && */
// context.masternodeSync != null && context.masternodeSync.hasSyncFlag(MasternodeSync.SYNC_FLAGS.SYNC_CHAINLOCKS)) {
// it = chainLocks.iterator();
// while (it.hasNext()) {
// InventoryItem item = it.next();
// if (!alreadyHave(item)) {
// getdata.addItem(item);
// }
// }
// }

// if(context.masternodeSync != null && context.masternodeSync.hasSyncFlag(MasternodeSync.SYNC_FLAGS.SYNC_SPORKS)) {
// it = sporks.iterator();
// while (it.hasNext()) {
// InventoryItem item = it.next();
// getdata.addItem(item);
// }
// }

// if(context.masternodeSync != null && context.masternodeSync.syncFlags.contains(MasternodeSync.SYNC_FLAGS.SYNC_GOVERNANCE)) {
// it = goveranceObjects.iterator();
//
// while (it.hasNext()) {
// InventoryItem item = it.next();
// if (!alreadyHave(item))
// getdata.addItem(item);
// else {
// // The line below can trigger confidence listeners.
// GovernanceVoteConfidence conf = context.getVoteConfidenceTable().seen(item.hash, this.getAddress());
//
// log.debug("{}: getdata on tx {}", getAddress(), item.hash);
// getdata.addItem(item);
// // Register with the garbage collector that we care about the confidence data for a while.
// pendingVotes.add(conf);
// }
// }
// }

// If we are requesting filteredblocks we have to send a ping after the getdata so that we have a clear
// end to the final FilteredBlock's transactions (in the form of a pong) sent to us
boolean pingAfterGetData = false;
Expand Down
8 changes: 0 additions & 8 deletions core/src/main/java/org/bitcoinj/quorums/LLMQUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,6 @@ static boolean evalSpork(LLMQParameters.LLMQType llmqType, long sporkValue) {
return sporkValue == 1 && llmqType != LLMQ_100_67 && llmqType != LLMQ_400_60 && llmqType != LLMQ_400_85;
}

// boolean isAllMembersConnectedEnabled(LLMQParameters.LLMQType llmqType) {
// return evalSpork(llmqType, Context.get().sporkManager.getSporkValue(SPORK_21_QUORUM_ALL_CONNECTED));
// }
//
// boolean isQuorumPoseEnabled(LLMQParameters.LLMQType llmqType) {
// return evalSpork(llmqType, Context.get().sporkManager.getSporkValue(SPORK_23_QUORUM_POSE));
// }

public static boolean isQuorumRotationEnabled(@Nullable AbstractBlockChain headerChain, AbstractBlockChain blockChain, NetworkParameters params, LLMQParameters.LLMQType type) {
if (type != params.getLlmqDIP0024InstantSend()) {
return false;
Expand Down

0 comments on commit bf69b15

Please sign in to comment.