-
Notifications
You must be signed in to change notification settings - Fork 116
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
itest: small fixes for tapd load test #869
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -147,7 +147,7 @@ func MineBlocks(t *testing.T, client *rpcclient.Client, | |
var blockHashes []*chainhash.Hash | ||
|
||
switch backend.(type) { | ||
case rpcclient.BitcoindVersion: | ||
case *rpcclient.BitcoindVersion: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe we should add a comment here? Otherwise someone looking at this will definitely think one of them is wrong... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. aren't both meant to be pointers? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nope, apparently they're not, which is very weird... |
||
addr, err := btcutil.DecodeAddress( | ||
regtestMiningAddr, regtestParams, | ||
) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should actually be
bobHost
and notaliceHost
? IIUC alice is the client trying to sync to bob.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I think this is correct. It was wrong before. Bob should be the client that syncs to Alice and for that it needs Alice's host address.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There may be more than one correct way to set it up. The old
mint
test used to havebob
addalice
as a federation server usingbob.AddFederationServer(... something <aliceHost> ...)
, so I was just reverting to that approach. We could probably also get away with havingalice
addbob
as the federation server.Does the directionality of who adds whom matter? Alice is the node doing all the minting the way the tests are setup now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Directionality matters, yes. Because a sync currently is only pull. So Bob will fetch everything that Alice has. But if Bob has something that Alice doesn't I don't think that's currently pushed in the other direction.