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

Initial Signet support #1536

Closed
wants to merge 1 commit into from
Closed

Initial Signet support #1536

wants to merge 1 commit into from

Conversation

pavel-main
Copy link

Initial PR to support default Signet ("Signet Global Test Net III"). Custom Signet is not implemented in this PR.

More info about Signet:

Copy link
Contributor

@torkelrogstad torkelrogstad left a comment

Choose a reason for hiding this comment

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

Really great stuff! Except for the removed line in .travis.yml, there's only one more thing I could spot: In the README and doc.go files of this package, there's a couple of mentions of "three standard Bitcoin networks". That's not true with signet being added. I'd suggest just removing the mention of how many networks there are altogether.

Also, would it make sense to wait with merging this, until it is merged into Core? In case any changes are made.

.travis.yml Outdated
@@ -2,7 +2,6 @@ language: go
cache:
directories:
- $GOCACHE
- $GOPATH
Copy link
Contributor

Choose a reason for hiding this comment

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

what's the reason for changing this?

Copy link
Author

@pavel-main pavel-main Feb 10, 2020

Choose a reason for hiding this comment

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

@torkelrogstad Sorry, this may look out of context because of rebasing.

Looks like CI has cached my initial version with a failing test and can't invalidate the cache even after providing a code with sucessful tests, e.g.:

https://travis-ci.org/btcsuite/btcd/builds/647711967
https://travis-ci.org/btcsuite/btcd/builds/647712943
https://travis-ci.org/btcsuite/btcd/builds/647769818

These builds worked both locally & on CI for my personal fork:
https://github.com/pavel-main/btcd/pull/1

@jakesyl Was also encountering this issue before in previous PR:
#1503 (comment)

Completely understand if you wish to keep this line for now - I can just try pushing a new branch & opening new PR from scratch

Copy link
Contributor

Choose a reason for hiding this comment

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

Hm, I see. I don't really have super strong feelings on this, as I don't have much knowledge of the CI setup here.

Copy link
Author

Choose a reason for hiding this comment

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

@torkelrogstad Feels like a Travis CI bug, exactly or similar to this one - travis-ci/travis-ci#3055 (comment)

They're storing cached artifacts elsewhere (probably on S3), so something might got broken there. Perhaps a quicker and cleaner workaround is to clear caches on Travis side once and then we'll rollback .travis.yml changes to try again

Copy link
Collaborator

Choose a reason for hiding this comment

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

If this is flaking tests, let's just remove it

Copy link
Collaborator

Choose a reason for hiding this comment

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

See #1537

@pavel-main
Copy link
Author

@torkelrogstad good catch, I'll follow-up with doc.go update

jakesylvestre added a commit to jakesylvestre/btcd that referenced this pull request Feb 10, 2020
$GOPATH caching has led to flaky tests as per btcsuite#1503 and btcsuite#1536. The speedup is marginal and while the false negatives are a headache, false positives are potentially dangerous.
@pavel-main
Copy link
Author

@torkelrogstad Updated doc.go & removed .travis.yml changes in favor of #1537

@jakesylvestre
Copy link
Collaborator

jakesylvestre commented Mar 4, 2020

@jcvernaleo (as per #1530)

  • low priority (no issues related to this beyond this PR/low use)
  • feature

Well reviewed

jakesylvestre added a commit to xplorfin/btcd that referenced this pull request Mar 5, 2020
$GOPATH caching has led to flaky tests as per btcsuite#1503 and btcsuite#1536. The speedup is marginal and while the false negatives are a headache, false positives are potentially dangerous.
@pavel-main pavel-main closed this Aug 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants