Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

Clean up tabbing and warnings in mempool feature. #311

Merged
merged 4 commits into from
Aug 14, 2017

Conversation

mikedennis
Copy link
Contributor

In prep for refactoring.

Copy link
Contributor

@bokobza bokobza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking care of that.
Do you mind giving me a bit of context as to why you've commented some bits of code?
Also please for next time, don't mix changes of spacing and actual changes in the code in the same commit, as it's very hard to spot in a review :-)

// from. pfrom->AskFor(_inv);
}
var ret = await this.AddOrphanTx(from.PeerVersion.Nonce, tx);
//int nFetchFlags = 0; //GetFetchFlags(pfrom, chainActive.Tip(), chainparams.GetConsensus());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this not used anywhere?

// TODO: Implement Later with CheckRateLimit()
//private readonly FreeLimiterSection freeLimiter;

//private class FreeLimiterSection
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this not used anywhere either?

public PowConsensusOptions ConsensusOptions => this.consensusValidator.ConsensusOptions;
public static readonly FeeRate MinRelayTxFee = new FeeRate(DefaultMinRelayTxFee);
// TODO: Implement Later with CheckRateLimit()
//private readonly FreeLimiterSection freeLimiter;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this not used?

}
}

private void Chec
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did this get commented?

@mikedennis
Copy link
Contributor Author

Yes the only changes were commenting out some code that wasn't used anywhere that was throwing up a couple of compiler warnings. It compiles clean now.

@bokobza
Copy link
Contributor

bokobza commented Aug 14, 2017

Lovely stuff, thank you :-)
Can you please delete the line with nFetchFlags? Then I'll merge it.

@bokobza
Copy link
Contributor

bokobza commented Aug 14, 2017

you can remove it completely, the GetFetchFlags doesn't even exist.

@bokobza bokobza merged commit 4788251 into stratisproject:master Aug 14, 2017
@bokobza
Copy link
Contributor

bokobza commented Aug 14, 2017

Thank you Mike :-) @mikedennis

codingupastorm added a commit that referenced this pull request Mar 10, 2019
Goes in after #309.

Sets up 2 chains. 
Mines coins on main chain.
Sends to sidechain via federation.
Verifies that coins are received on sidechain.

Much to expand on from here.
codingupastorm added a commit to codingupastorm/StratisBitcoinFullNode that referenced this pull request Apr 24, 2020
…-policy

Set policy that goes into create transactions
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants