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

Smart contract exchange of BTC for DFI #1045

Merged
merged 6 commits into from
Jan 24, 2022
Merged

Conversation

Bushstar
Copy link
Member

No description provided.

@@ -243,6 +243,9 @@ class CMainParams : public CChainParams {
consensus.accountDestruction.insert(GetScriptForDestination(DecodeDestination("dJEbxbfufyPF14SC93yxiquECEfq4YSd9L", *this)));
consensus.accountDestruction.insert(GetScriptForDestination(DecodeDestination("8UAhRuUFCyFUHEPD7qvtj8Zy2HxF5HH5nb", *this)));

consensus.smartContracts.clear();
consensus.smartContracts["DFIP2201"] = GetScriptForDestination(CTxDestination(WitnessV0KeyHash(std::vector<unsigned char>{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0})));
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use std::vector<unsigned char>(20, 0) {} - it's initializer_list

Copy link
Member Author

Choose a reason for hiding this comment

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

For this leave it in full, next smart contract address will be copy and paste of this with 1 set at the end.

Copy link
Member

Choose a reason for hiding this comment

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

May be we use something like a boost preprocessor macro to update in compile time and let that increment later. For now copy paste looks to do.

src/masternodes/govvariables/attributes.cpp Outdated Show resolved Hide resolved
@bvbfan bvbfan self-requested a review January 19, 2022 08:59
@prasannavl prasannavl added this to the 2.6.0 - Fort Canning Hill milestone Jan 19, 2022
@prasannavl prasannavl merged commit 06b51a7 into master Jan 24, 2022
@prasannavl prasannavl deleted the new-smart-contract branch January 24, 2022 09:56
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.

4 participants