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

PrivateSend - Unable to Mix Coins - Invalid Collateral? #5

Open
togosh opened this issue Jul 14, 2019 · 8 comments
Open

PrivateSend - Unable to Mix Coins - Invalid Collateral? #5

togosh opened this issue Jul 14, 2019 · 8 comments
Assignees
Labels
Reproduce Please try to reproduce this

Comments

@togosh
Copy link

togosh commented Jul 14, 2019

Documentation:
https://wiki.biblepay.org/PrivateSend

debug.log:

CMasternodeMan::FindRandomNotInVec -- 173 enabled masternodes, 20 masternodes to choose from

CPrivateSendClientSession::StartNewQueue -- attempt 0 connection to Masternode XXXX

CPrivateSendClientSession::StartNewQueue -- pending connection, nSessionDenom: 1 (10.01), addr=XXXX

CPrivateSendClientSession::CheckPoolStateUpdate -- entry is rejected by Masternode

CPrivateSendClientSession::DoAutomaticDenominating -- invalid collateral, recreating...

keypool added key XXXX, size=100000, internal=0

init message: Loading wallet... (822.47 %)

CMasternodeMan::FindRandomNotInVec -- 172 enabled masternodes, 85 masternodes to choose from

CPrivateSendClientSession::StartNewQueue -- attempt 0 connection to Masternode XXXX

CPrivateSendClientSession::StartNewQueue -- pending connection, nSessionDenom: 1 (10.01), addr=XXXX

CPrivateSendClientSession::CheckPoolStateUpdate -- entry is rejected by Masternode

ThreadRPCServer incorrect password attempt from XXXX

CPrivateSendClientSession::DoAutomaticDenominating -- invalid collateral, recreating...

bool CPrivateSendClientSession::DoAutomaticDenominating
https://github.com/biblepay/biblepay-evolution/blob/master/src/privatesend-client.cpp#L798

if (!CPrivateSend::IsCollateralValid(txMyCollateral))
https://github.com/biblepay/biblepay-evolution/blob/master/src/privatesend-client.cpp#L910

bool CPrivateSend::IsCollateralValid
https://github.com/biblepay/biblepay-evolution/blob/master/src/privatesend.cpp#L325

@biblepay
Copy link
Owner

Is this still broken?

@togosh
Copy link
Author

togosh commented Oct 2, 2019

I've rented three servers, set up 3 wallets, sent 10k coins to each and started mixing,
Ill let them run for a day and report back

@togosh
Copy link
Author

togosh commented Oct 2, 2019

NOTE: I did notice that the coins were getting split up into 10, 1, 0.1, and 0.01 denominations

I believe in past, due to us having much higher coin supply than Dash,
we removed 0.1 and 0.01 and added 100, 1,000 and 10,000
https://www.reddit.com/r/BiblePay/comments/8avfaj/privatesend_coin_mixing_denominations_increased/

@sunk818
Copy link

sunk818 commented Oct 2, 2019

Remember PrivateSend Basics text needs to be updated too.

Screenshot 2019-10-02 15 40 38

@togosh
Copy link
Author

togosh commented Oct 4, 2019

Reporting Back:
Full debug.log file from 3rd mixing machine
https://uploadfiles.io/59mkh608 (145mb file, expires in 30 days)
I do not believe any coins mixed on any machines,
I setup a 4th machine with GUI, all the coins got denominated, but no mixing

@togosh togosh removed their assignment Oct 4, 2019
@biblepay biblepay self-assigned this Oct 15, 2019
@biblepay biblepay added the Reproduce Please try to reproduce this label Oct 15, 2019
@biblepay
Copy link
Owner

Lets try to nail this down in TestNet, since that will be our next major upgrade.

Ill get these denominations updated - then released - then we can re-test with those deterministic sancs. I have a feeling that the slow and broken mixing is due to the vast difference in denomination size (like you mentioned above). Also being deterministic, the mixing should be much much more reliable and faster in testnet.

Ill make a post as soon as its ready.

@biblepay biblepay assigned MIPPL and unassigned biblepay Jan 11, 2020
@MIPPL
Copy link

MIPPL commented Jan 15, 2020

@togoshige please contact me in discord so we can test this in a more fluid way. Thanks.

MIPPL pushed a commit to MIPPL/biblepay that referenced this issue May 15, 2020
b13a68e Squashed 'src/leveldb/' changes from 196962f..c521b3a (Pieter Wuille)

Pull request description:

  Includes:
  * bitcoin-core/leveldb-subtree#2: Prefer std::atomic over MemoryBarrier (Pieter Wuille)
  * bitcoin-core/leveldb-subtree#5: Move helper functions out of sse4.2 object (Cory Fields)
  * bitcoin-core/leveldb-subtree#6: Fixes typo (Dimitris Tsapakidis)
  * bitcoin-core/leveldb-subtree#10: Clean up compile-time warnings (gcc 7.1) (Matt Corallo)
  * bitcoin-core/leveldb-subtree#11: fixup define checks. Cleans up some oopses from biblepay#5 (Cory Fields)

Tree-SHA512: 2b88a99a86ed8c74c860de13a123ea7f5424d35d314be564820cf83aaae8308383403f7cd56f17c241cfee4885699796141fed666559c21044eaabaeea073315
@biblepay
Copy link
Owner

We should have a new testnet thread open within the next 7 days. Since Dash changed so much of PS in LLMQ it would be worth testing again in testnet against the new LLMQ 5_60 quorums (these are two per day), to see if PS works flawlessly in DM mode. If it does work in testnet Im confident it will work in prod in September.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Reproduce Please try to reproduce this
Projects
None yet
Development

No branches or pull requests

4 participants