Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix -liquidityprovider option #1829

Merged
merged 1 commit into from
Jan 6, 2018
Merged

Conversation

UdjinM6
Copy link

@UdjinM6 UdjinM6 commented Jan 2, 2018

Reverting the pre-1248 logic for liquidity providers

Fixes #1815

@UdjinM6 UdjinM6 added this to the 12.2.3 milestone Jan 2, 2018
@UdjinM6 UdjinM6 force-pushed the fixliquidityprovider branch 3 times, most recently from be39a47 to d34e786 Compare January 2, 2018 22:10
@UdjinM6 UdjinM6 changed the base branch from v0.12.2.x to develop January 5, 2018 13:32
@UdjinM6 UdjinM6 modified the milestones: 12.2.3, 12.3 Jan 5, 2018
revert to pre-1248 logic for liquidity providers
@UdjinM6 UdjinM6 force-pushed the fixliquidityprovider branch from d34e786 to 760c0a8 Compare January 5, 2018 13:34
@UdjinM6
Copy link
Author

UdjinM6 commented Jan 5, 2018

Rebased on develop, will backport into #1828 after merging

@UdjinM6 UdjinM6 modified the milestones: 12.3, 12.2.3 Jan 5, 2018
@UdjinM6 UdjinM6 mentioned this pull request Jan 5, 2018
9 tasks
Copy link

@willwray willwray left a comment

Choose a reason for hiding this comment

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

utACK

Looks good.
A C vs C++ style nit to ponder.

return SendDenominate(vecTxDSInRet, vecTxOutRet, connman);
if (nLiquidityProvider) {
// Try to use only inputs with the same number of rounds starting from the lowest number of rounds possible
for(int i = 0; i< nPrivateSendRounds; i++) {
Copy link

Choose a reason for hiding this comment

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

Another C vs C++ style nit / chestnut* (chestnit?) - prefer pre inc/dec over post inc/dec.
https://google.github.io/styleguide/cppguide.html#Preincrement_and_Predecrement

Purely style here; i++ is traditional C (especially as a loop index like this) while ++i is idiomatic C++ (which therefore should've been called ++C).

When used in an expression a post-increment has to be read more carefully because it implies state.

  • an old chestnut:
    a joke or story that has become tedious because of its age and constant repetition.

@UdjinM6 UdjinM6 merged commit 287d367 into dashpay:develop Jan 6, 2018
UdjinM6 added a commit to UdjinM6/dash that referenced this pull request Jan 6, 2018
revert to pre-1248 logic for liquidity providers
NarubyRiverlione added a commit to NarubyRiverlione/spice that referenced this pull request Feb 4, 2018
* 'spice' of github.com:NarubyRiverlione/spice: (8382 commits)
  updated testnet genessis
  spice images
  more rename
  genesis blocks ports magic message letters start letter addresses
  cleanup : * remove gitian signatures * remove seeds
  rename: more originale files
  rename
  Prepare 0.12.2.3 release notes (dashpay#1846)
  Avoid reference leakage in CKeyHolderStorage::AddKey (dashpay#1840)
  Protect CKeyHolderStorage via mutex (dashpay#1834)
  Skip existing masternode conections on mixing (dashpay#1833)
  Merge pull request dashpay#1836 from lodgepole/feature/backport-11847
  Fix -liquidityprovider option (dashpay#1829)
  Vote on IS only if it was accepted to mempool (dashpay#1826)
  bump version to 0.12.2.3 (dashpay#1827)
  Merge bitcoin#8256: BUG: bitcoin-qt crash
  Swap iterations and fUseInstantSend parameters in ApproximateBestSubset (dashpay#1819)
  Fix crash on exit when -createwalletbackups=0 (dashpay#1810)
  Prepare v0.12.2.2 release notes (dashpay#1769)
  Force rcc to use resource format version 1. (dashpay#1784)
  ...

# Conflicts:
#	contrib/gitian-descriptors/gitian-osx-signer.yml
#	contrib/gitian-descriptors/gitian-win-signer.yml
#	src/chainparams.cpp
#	src/qt/res/icons/bitcoin.icns
#	src/qt/res/icons/bitcoin.ico
#	src/qt/res/icons/bitcoin.png
#	src/qt/res/icons/crownium/about.png
#	src/qt/res/icons/drkblue/about.png
#	src/qt/res/icons/drkblue/bitcoin.png
#	src/qt/res/icons/light/about.png
#	src/qt/res/icons/light/remove.png
#	src/qt/res/icons/remove.png
#	src/qt/res/icons/trad/about.png
#	src/qt/res/icons/trad/remove.png
andvgal pushed a commit to energicryptocurrency/gen2-energi that referenced this pull request Dec 26, 2018
revert to pre-1248 logic for liquidity providers
@UdjinM6 UdjinM6 deleted the fixliquidityprovider branch November 26, 2020 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants