Skip to content

Conversation

@blondfrogs
Copy link

@blondfrogs blondfrogs commented Jan 5, 2018

Investigate a potential bug with multisend not working with Master Node rewards.
The conclusion was that in order for multisend to work the following must be true:

  • The wallet the 10000 pivx are located in must be unlocked
  • The wallet the 10000 pivx are located in must be connected to the pivx network
  • The wallet the 10000 pivx are located in must have multisend enabled

Also, found a potential memory leak and updated the multisend code to fix the memory leak issue.

Copy link

@Warrows Warrows left a comment

Choose a reason for hiding this comment

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

utACK

src/wallet.cpp Outdated
if (IsInitialBlockDownload() || IsLocked()) {
// Stop the old blocks from sending multisends
if (chainActive.Tip()->nTime < (GetAdjustedTime() - 300) || IsLocked()) {
LogPrintf("Multisend: disabled on tx's that are being read on initial block loading, %d", chainActive.Tip()->nTime);
Copy link

Choose a reason for hiding this comment

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

This could get pretty spammy if resyncing the chain while having multisend activated. I think we should either remove this print statement or change it to something like LogPrint('debug', "Multisend: .....

Copy link
Author

Choose a reason for hiding this comment

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

I agree. I am not sure this there is merit to print it with the debug flag. I was using this to verify that multi-send still worked. I think removing it completely is the best option.

@rejectedpromise
Copy link

utACK now with a great description ;)

@blondfrogs blondfrogs changed the title Remove potential memory leak, update multisend code [MultiSend] Remove potential memory leak, update multisend code Jan 16, 2018
@Mrs-X
Copy link

Mrs-X commented Jan 18, 2018

Nicely spotted the potentially missing delete cControl; 👍
I think there are some other places where this can be fixed, I know of at least 1. I'll fix that.

utACK (will test later...)

Copy link

@Mrs-X Mrs-X left a comment

Choose a reason for hiding this comment

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

ACK, works as designed.

When multisend for masternode rewards is enabled it needs a while until the first reward is send (about 15 minutes here), but after that it works for each incoming reward (as long as the wallet/daemon is running).

@Mrs-X Mrs-X merged commit eae2850 into master Jan 18, 2018
Mrs-X added a commit that referenced this pull request Jan 18, 2018
…d code

eae2850 Remove potentional memory leak, update multisend code (blondfrogs)

Tree-SHA512: 67930f4f9d18536ef2e473687563a31a1484c7089e548a80c0b30448251394bacdd5d10f122ca7fa718b8cda806ad150d2f9574728cfeed3368852cbd4b70648
@ghost ghost removed the review label Jan 18, 2018
@Fuzzbawls Fuzzbawls added this to the 3.1.0 milestone Jan 20, 2018
@Fuzzbawls Fuzzbawls deleted the multisend branch January 20, 2018 09:53
@Fuzzbawls Fuzzbawls changed the title [MultiSend] Remove potential memory leak, update multisend code [Wallet] Remove potential memory leak, update multisend code Apr 30, 2018
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.

7 participants