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

Add Gincoin (safe code only) #592

Merged
merged 12 commits into from
Nov 27, 2018
Merged

Conversation

kkabala
Copy link
Contributor

@kkabala kkabala commented Nov 19, 2018

Before 7 May 2018 Gincoin was using Neoscrypt instead of Lyra2Z. For now commented out that part as there are no safe Neoscrypt implementation (same way as for Mogwai).
Probably in the future I'll try to rewrite neoscrypt also.

//var builder = NodeBuilder.Create(NodeDownloadData.Liquid.v3_14_1_21, Altcoins.AltNetworkSets.Liquid.Regtest, caller);
//var builder = NodeBuilder.Create(NodeDownloadData.Bitcore.v0_15_2, Altcoins.Bitcore.Instance.Regtest, caller);
var builder = NodeBuilder.Create(NodeDownloadData.Gincoin.v1_1_0_0, Altcoins.Gincoin.Instance.Regtest, caller);
Copy link
Collaborator

Choose a reason for hiding this comment

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

comment this and uncomment Bitcoin

NBitcoin.sln Outdated
@@ -18,6 +18,10 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NBitcoin.Altcoins", "NBitco
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NBitcoin.TestFramework", "NBitcoin.TestFramework\NBitcoin.TestFramework.csproj", "{653C0F21-25FE-4B72-95AC-20D070A45415}"
EndProject
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove changes in this file.

.gitmodules Outdated
@@ -0,0 +1,3 @@
[submodule "Submodules/Lyra2"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove this

@NicolasDorier
Copy link
Collaborator

NicolasDorier commented Nov 20, 2018

No submodule, duplicate the code if needed. And fix the build.

@kkabala
Copy link
Contributor Author

kkabala commented Nov 20, 2018

Done. Thanks for the review Nicolas!

@eabz
Copy link
Contributor

eabz commented Nov 20, 2018

@kkabala Gincoin mainnet Magic is: 0xBD6B0CBF

@kkabala
Copy link
Contributor Author

kkabala commented Nov 20, 2018

You're right @eabz . Already fixed, thanks!

{
public static class Consensus
{
public const int LYRA2Z_TIMESTAMP = 1525651200; //7 May 2018 @ midnight UTC
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove this, just hardcode where you use it

DownloadLink =
"https://github.com/gincoin-dev/gincoin-core/releases/download/{0}.0/gincoincore-{0}-linux-64bit.tar.gz",
Archive = "gincoincore-{0}-linux-64bit.tar.gz",
Executable = "gincoincore-{0}-linux-64bit/bin/dashd",
Copy link
Collaborator

Choose a reason for hiding this comment

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

dashd?

@kkabala
Copy link
Contributor Author

kkabala commented Nov 22, 2018

@NicolasDorier could you re-run AppVeyor build? It doesn't seem that any of my last 2 commits is able to make this unit test fail and before everything was built successfully.
On my local PC this test passes.

@kkabala
Copy link
Contributor Author

kkabala commented Nov 23, 2018

OK, everything seems to be ok now with builds.
I've force pushed as needed to change a username of some commits

@NicolasDorier NicolasDorier merged commit de89d2a into MetacoSA:master Nov 27, 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.

None yet

3 participants