You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
neutrino + query: Request made more flexible to querying.
This commit makes the query package more flexible
in querying peers. This is done by adding sendQuery function field to
query.Request struct. Instead of using only QueueMessageWithEncoding
for all requests. This would be useful in coming commits where
we would be using pushGetHeadersMsg to fetch block headers from peers.
Consequent changes:
encoding was removed in the queryJob field as it would not be useful
for all requests. Requests that need encoding can define it as one of
the fields in its own implementation of the new interface created as
a type for the Req field in Request.
PriorityIndex function signature would be used in the coming commits
to indicate the the priority a request should preferably have in a
query batch.
An implementaion of the interface was created for GetCfheaders,
GetCfilter and getData requests. Tests were updated and added to
reflect these changes.
Signed-off-by: Maureen Ononiwu <[email protected]>
0 commit comments