-
Notifications
You must be signed in to change notification settings - Fork 32
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
Optimize Relay #108
Optimize Relay #108
Conversation
@dongrie is this PR ready for review? |
3e6da80
to
9c96b8c
Compare
@siburu Change to ready for review |
cc48cb2
to
f005205
Compare
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.
@dongrie I agree with your basic direction. I made some comments on several points.
Signed-off-by: Dongri Jin <[email protected]>
Signed-off-by: Dongri Jin <[email protected]>
Signed-off-by: Dongri Jin <[email protected]>
Signed-off-by: Dongri Jin <[email protected]>
Signed-off-by: Dongri Jin <[email protected]>
* Fix start time variable * Change relay parameter Signed-off-by: Dongri Jin <[email protected]>
Signed-off-by: Dongri Jin <[email protected]>
Signed-off-by: Dongri Jin <[email protected]>
Signed-off-by: Dongri Jin <[email protected]>
90087f6
to
80660e3
Compare
Signed-off-by: Dongri Jin <[email protected]>
Signed-off-by: Dongri Jin <[email protected]>
Signed-off-by: Dongri Jin <[email protected]>
Signed-off-by: Dongri Jin <[email protected]>
Signed-off-by: Dongri Jin <[email protected]>
Signed-off-by: Dongri Jin <[email protected]>
Signed-off-by: Dongri Jin <[email protected]>
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.
@dongrie Sorry for the late review
Signed-off-by: Dongri Jin <[email protected]>
Fixed test-service |
Use eventHeight Signed-off-by: Dongri Jin <[email protected]>
Signed-off-by: Dongri Jin <[email protected]>
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.
@dongrie Sorry for late. I put some comments. They are the last to fix.
chains/tendermint/query.go
Outdated
} else { | ||
counterpartyCtx = core.NewQueryContext(context.TODO(), counterpartyH.GetHeight()) | ||
} | ||
|
||
seqs, err := counterparty.QueryUnreceivedPackets(counterpartyCtx, packets.ExtractSequenceList()) | ||
if err != nil { | ||
return nil, err | ||
return nil, fmt.Errorf("failed to counterparty query unreceived packets: %w height: %v", err, counterpartyCtx.Height()) |
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.
"failed to query counterparty for unreceived packets: error=%w, height=%v"
Please apply the same changes to similar comments throughout this file.
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.
Fixed error message
72e4d88
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.
@dongrie Please apply the same changes to similar comments throughout this file...
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.
Fixed error messages
72e4d88
* Fix check src, dst timestamp * Fix test case comments Signed-off-by: Dongri Jin <[email protected]>
Signed-off-by: Dongri Jin <[email protected]>
chains/tendermint/query.go
Outdated
} else { | ||
counterpartyCtx = core.NewQueryContext(context.TODO(), counterpartyH.GetHeight()) | ||
} | ||
|
||
seqs, err := counterparty.QueryUnreceivedAcknowledgements(counterpartyCtx, packets.ExtractSequenceList()) | ||
if err != nil { | ||
return nil, err | ||
return nil, fmt.Errorf("failed to counterparty query unreceived acknowledgements: error=%w height=%v", err, counterpartyCtx.Height()) |
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.
@dongrie failed to query counterparty for unreceived ...
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.
3d82c65
Fixed
Signed-off-by: Dongri Jin <[email protected]>
chains/tendermint/query.go
Outdated
} else { | ||
counterpartyCtx = core.NewQueryContext(context.TODO(), counterpartyH.GetHeight()) | ||
} | ||
|
||
seqs, err := counterparty.QueryUnreceivedAcknowledgements(counterpartyCtx, packets.ExtractSequenceList()) | ||
if err != nil { | ||
return nil, err | ||
return nil, fmt.Errorf("failed to query counterparty for unreceived: error=%w height=%v", err, counterpartyCtx.Height()) |
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.
@dongrie unreceived acknowledgements
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.
Sorry, Fixed
7a4d0fa
Signed-off-by: Dongri Jin <[email protected]>
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.
@dongrie Great work, thanks.
Optimized execution interval of relay service