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

Allow compilation with --disable-wallet #1733

Merged
merged 5 commits into from
Dec 1, 2017
Merged

Conversation

UdjinM6
Copy link

@UdjinM6 UdjinM6 commented Nov 23, 2017

Should fix #1732, please test.

@UdjinM6 UdjinM6 added this to the 12.3 milestone Nov 23, 2017
@UdjinM6 UdjinM6 force-pushed the fix1732 branch 2 times, most recently from 343e3b3 to 47646ab Compare November 27, 2017 19:05
@gladcow
Copy link

gladcow commented Nov 29, 2017

Can't compile it with --disable-wallet. I have several linking errors. For example, masternode.cpp should be part of dashd without wallet, as far as I understand, but it contains reference to pMainWallet: https://github.com/dashpay/dash/blob/47646abf07b23861231dd473c77445a57a7cfae7/src/masternode.cpp#L381, so I has linking error.

After getting the sources from this PR I'm doing

./configure --disable-wallet 
make clean
make

@UdjinM6
Copy link
Author

UdjinM6 commented Nov 29, 2017

Thanks! Wasn't failing on my mac but I was able to reproduce this on Ubuntu... Should be fixed by 2b4ade7 , pls try again

@gladcow
Copy link

gladcow commented Nov 29, 2017

ACK. I've compiled it, have started dashd and have posted several rpc calls, all is working now (Ubuntu 17)

@UdjinM6
Copy link
Author

UdjinM6 commented Dec 1, 2017

Rebased to fix merge conflict in rpc/mining.cpp (few includes were overlapping)

@gladcow
Copy link

gladcow commented Dec 1, 2017

ACK

@UdjinM6
Copy link
Author

UdjinM6 commented Dec 1, 2017

I figured out that we can also (finally) re-enable Travis build with no wallet which was disabled for almost 2 years now 🙈 Trying to do so revealed more references that had to be fixed which in their turn required quite a few other files to be fixed too. Organized these changes in 2 new commits, groped by the initially fixed reference. 3rd commit is simply removing # and re-enabling an additional build this way. As a result we should see 1 more job in Travis now and (hopefully) all of them should be ✅. Pls review and build/test locally as well.

@gladcow
Copy link

gladcow commented Dec 1, 2017

ACK, have builded it locally, synced with net, call several rpc methods, wallet rpc calls are not available, other calls works correctly, GUI client hasn't wallet-related tabs, all is correct.

@thelazier
Copy link

ACK, have builded it locally, running as masternode on testnet , working fine.

@UdjinM6 UdjinM6 merged commit c166ed3 into dashpay:develop Dec 1, 2017
@UdjinM6 UdjinM6 modified the milestones: 12.3, 12.2.2 Dec 8, 2017
willyko added a commit to syscoin/syscoin that referenced this pull request Feb 15, 2018
andvgal pushed a commit to energicryptocurrency/gen2-energi that referenced this pull request Dec 26, 2018
* Allow compilation with `--disable-wallet`

* fix remaining references

* Drop wallet references/include in CActiveMasternode and fix other files affected by this change

* Wrap privatesend-client.h include with ifdef/endif and fix other files affected by this change

* Re-enable Travis build with no wallet

reverts 267e578
@UdjinM6 UdjinM6 deleted the fix1732 branch November 26, 2020 13:26
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.

3 participants