MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / AddResponse

Method AddResponse

sqlchain/chain.go:1037–1039  ·  view source on GitHub ↗

AddResponse addes a response to the ackIndex, awaiting for acknowledgement.

(resp *types.SignedResponseHeader)

Source from the content-addressed store, hash-verified

1035
1036// AddResponse addes a response to the ackIndex, awaiting for acknowledgement.
1037func (c *Chain) AddResponse(resp *types.SignedResponseHeader) (err error) {
1038 return c.ai.addResponse(c.rt.getHeightFromTime(resp.GetRequestTimestamp()), resp)
1039}
1040
1041func (c *Chain) register(ack *types.SignedAckHeader) (err error) {
1042 return c.ai.register(c.rt.getHeightFromTime(ack.GetRequestTimestamp()), ack)

Callers 3

pushBlockMethod · 0.95
sendQueryExMethod · 0.80
QueryMethod · 0.80

Calls 3

getHeightFromTimeMethod · 0.80
addResponseMethod · 0.45
GetRequestTimestampMethod · 0.45

Tested by 1

sendQueryExMethod · 0.64