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

DigiByte #1993

Merged
merged 9 commits into from Apr 14, 2023
Merged

DigiByte #1993

merged 9 commits into from Apr 14, 2023

Conversation

chappjc
Copy link
Member

@chappjc chappjc commented Dec 10, 2022

Resolves #1992

Regnet cannot be mined too quickly. https://twitter.com/chappjc/status/1601403517151113216?t=-H0D1YgQvpu2kvk5rMi8MQ&s=1

I still need to verify serialization is unchanged.

https://digibyte.org/docs/integrationguide.pdf

@buck54321 buck54321 marked this pull request as ready for review January 9, 2023 06:18
@chappjc
Copy link
Member Author

chappjc commented Jan 9, 2023

A couple remaining items I haven't gotten to:

  • tx and block deserialization tests
  • update simnet trade test tool
  • dcrdex server market config with a dgb pair

And test, of course.

@JoeGruffins
Copy link
Member

JoeGruffins commented Jan 19, 2023

In the last commit, are any of the images besides dgb.png used?

Should v7.17.2 be ok? Running on testnet not finding any blocks. Any tips?

@chappjc
Copy link
Member Author

chappjc commented Jan 19, 2023

In the last commit, are any of the images besides dgb.png used?

No I'll rm the ones we don't like.

Should v7.17.2 be ok? Running on testnet not finding any blocks. Any tips?

https://github.com/DigiByte-Core/digibyte/releases/tag/v7.17.3

But there's a nasty bug that makes "Loading block index..." at startup take in excess of 24 hrs.
I have a patch branch here: DigiByte-Core/digibyte#102
Mainnet does not seem to have this issue for the reasons described in the PR desc.

The testnet seeders have been down. That's another thing I raised with their community. For now, you'll have to replace the following lines:

https://github.com/DigiByte-Core/digibyte/blob/5ac15f556e2150c2a23f2b4e45f32fda4de3f9b6/src/chainparams.cpp#L414-L415

without the "seed." prefix to the host name.

Some other possible nodes to add manually are 91.197.230.186, 24.101.88.154, 47.75.38.245, 199.47.64.33, 8.214.25.169
Also not a problem with mainnet.

@JoeGruffins
Copy link
Member

The harness seems to to be working on simnet. Not sure about testnet...

It looks like the dcrdex harness needs for dgb to be added and a market for it.

@chappjc
Copy link
Member Author

chappjc commented Jan 20, 2023

Squashed in a few fixes: https://github.com/decred/dcrdex/compare/c828cc98add27773b0304c681ed2fc20ff27cf19..60d7ac475299ec38acbb35d59a6cd72ab7f39ffa
Server starts, but haven't tested trades yet.

@ycagel
Copy link

ycagel commented Mar 6, 2023

Thanks for all the hard work! Do you have an ETA of when DigiByte may get integrated?

@buck54321
Copy link
Member

Things are looking good. We've added the remaining work to our next proposal and I anticipate we can finish things up within weeks. Getting a DigiByte market up and running is another hurdle. We're working on improving our market-making tools. The rudimentary tools being released in 0.6 (any day now) can help bootstrap a market, but provide few knobs for fine-tuned bot behavior. We'll keep at it and keep in touch.

@ycagel
Copy link

ycagel commented Mar 8, 2023

Thanks for the prompt reply @buck54321! I will work on getting the DigiByte community involved once DGB is live on the platform. I think there are quite a few people that are excited about Decred DEX. Cheers.

Copy link
Member

@buck54321 buck54321 left a comment

Choose a reason for hiding this comment

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

I doubt it would work anyway, because of the segwit misalignment, but when trying to trade, I see dgb wallet has no network peers (check your network or firewall).


var (
fallbackFeeKey = "fallbackfee"
configOpts = []*asset.ConfigOption{
Copy link
Member

Choose a reason for hiding this comment

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

Looks like btc.RPCConfigOpts and btc.CommonConfigOpts will work.

client/asset/dgb/dgb.go Outdated Show resolved Hide resolved
client/webserver/site/src/img/coins/dgb2.png Outdated Show resolved Hide resolved
@chappjc
Copy link
Member Author

chappjc commented Mar 23, 2023

image

image

@ycagel
Copy link

ycagel commented Mar 24, 2023

Amazing stuff @chappjc @buck54321! Are those screenshots actual orders? Was the other code fixes what you discussed before?

Cheers.

@chappjc
Copy link
Member Author

chappjc commented Mar 25, 2023

Amazing stuff @chappjc @buck54321! Are those screenshots actual orders?

We ran a few trades with this PR. Looks good so far.

We put up the PR in December as a quick initial feasibility check, but today the Decred stakeholders approved a broader initiative that included Digibyte integration, so it got moving again. https://proposals.decred.org/record/ca6b749

Was the other code fixes what you discussed before?

We're still targeting the released versions of Digibyte (v7.17.3), which doesn't include the regtest/simnet changes to make mining easier, like the easypow switch, but that will be valuable going forward. We haven't evaluated those changes yet, but we will.

It would also be good if the testnet issues were addressed, but we can work around it since it doesn't affect simnet or mainnet in practice.

I'll probably have some final questions before we release though. Stuff related to fee rates, dust limits, tx/block serialization, dandelion, etc. Will get back once more on the dex team have tested and reviewed.

@chappjc
Copy link
Member Author

chappjc commented Mar 28, 2023

Fine on mainnet too

image

https://digiexplorer.info/tx/4da4eca50b54e67b3d2c5684938686b42385429fad6188b13e353bbad22aa877

@chappjc
Copy link
Member Author

chappjc commented Mar 29, 2023

Rebased with #2196 merged, adding in AssetID: BipID, to the client clone config.

@chappjc chappjc modified the milestones: 0.6.1, 0.6 Mar 29, 2023
@chappjc chappjc modified the milestones: 0.6, 0.6.1 Mar 30, 2023
client/asset/dgb/dgb.go Show resolved Hide resolved
client/core/simnet_trade.go Outdated Show resolved Hide resolved
dex/testing/loadbot/loadbot.go Outdated Show resolved Hide resolved
@chappjc
Copy link
Member Author

chappjc commented Mar 31, 2023

simnet_trade tests OK, but you can't run them all at once because the digibyte node quickly becomes impossible to mine. You have to restart all the harnesses after each small test. For the same reason, loadbot isn't gonna be usable until the easypow change is released in v8 of digibyted.


*******************************************************************************

SUCCESS!! Test "makerghost" with client 1 as maker on market "dcr_dgb" PASSED!

*******************************************************************************

*******************************************************************************

SUCCESS!! Test "makerghost" with client 2 as maker on market "dcr_dgb" PASSED!

*******************************************************************************

@chappjc
Copy link
Member Author

chappjc commented Mar 31, 2023

Squashed the fixups.

@chappjc
Copy link
Member Author

chappjc commented Apr 11, 2023

Revalidated trades again today. Any lingering concerns?

@buck54321
Copy link
Member

I'll review this tomorrow. I'm sure it's g2g.

client/asset/btc/btc.go Show resolved Hide resolved
@chappjc chappjc merged commit d68ae84 into decred:master Apr 14, 2023
5 checks passed
@chappjc chappjc deleted the dbg branch April 14, 2023 17:25
@ycagel
Copy link

ycagel commented Apr 16, 2023

Thanks for all the hard work guys! How are things looking?

@buck54321
Copy link
Member

Work is merged. Didn't make it into 0.6.0, but we already have an 0.6.1 working for a (hopefully) quick follow-up and DigiByte will be in that release.

@ycagel
Copy link

ycagel commented May 2, 2023

Looks like there is more progress here guys! Awesome job and thank you!

@ycagel
Copy link

ycagel commented May 6, 2023

I see 0.6.1 was just released. Great work. Is DigiByte confirmed in that release?

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.

DGB support
4 participants