-
Notifications
You must be signed in to change notification settings - Fork 208
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
feat: PRT: Block Hash Cache #1623
Conversation
…rpcconsumerserver
…RT-block-hash-cache
func (rp *RelayProcessor) GetUserHeaders() []pairingtypes.Metadata { | ||
rp.lock.RLock() | ||
defer rp.lock.RUnlock() | ||
return rp.userReturnHeaders |
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.
remove: headers are already inside the replies
@@ -283,8 +363,15 @@ func (rp *RelayProcessor) checkEndProcessing(responsesCount int) bool { | |||
return true | |||
} | |||
} | |||
|
|||
usedProviders, ok := rp.usedProviders[rp.chainMessage.GetConcatenatedExtensions()] |
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.
this is a mistake, you check responses against the usedProviders object that can change, you need to manage responses for each used providers separately and check them
} | ||
} | ||
|
||
var zeroK K |
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.
this is done by defining named returned values
|
||
if err := decoder.Decode(&proposal); err != nil { | ||
func GetASpec(specIndex, getToTopMostPath string, ctxArg *sdk.Context, keeper *keeper.Keeper) (specRet spectypes.Spec, err error) { |
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.
move this from testUtils to utils if this is used in production code
@@ -118,7 +124,17 @@ func (cst *ConsumerStateTracker) TxConflictDetection(ctx context.Context, finali | |||
return err | |||
} | |||
|
|||
func (cst *ConsumerStateTracker) RegisterForSpecUpdates(ctx context.Context, specUpdatable updaters.SpecUpdatable, endpoint lavasession.RPCEndpoint) error { | |||
func (cst *ConsumerStateTracker) RegisterForSpecUpdates(ctx context.Context, specUpdatable updaters.SpecUpdatable, endpoint lavasession.RPCEndpoint, offlineSpecOptions *OfflineSpecOptions) error { |
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 need for this, just call setSpec on the updatable instead of calling this function by the caller
DEPRECATED AFTER REDESIGN |
Description
Closes: #XXXX
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
in the type prefix if API or client breaking changemain
branchReviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...