MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / InitChainSync

Method InitChainSync

abci/client/socket_client.go:356–363  ·  view source on GitHub ↗
(req types.RequestInitChain)

Source from the content-addressed store, hash-verified

354}
355
356func (cli *socketClient) InitChainSync(req types.RequestInitChain) (*types.ResponseInitChain, error) {
357 reqres := cli.queueRequest(types.ToRequestInitChain(req))
358 if err := cli.FlushSync(); err != nil {
359 return nil, err
360 }
361
362 return reqres.Response.GetInitChain(), cli.Error()
363}
364
365func (cli *socketClient) BeginBlockSync(req types.RequestBeginBlock) (*types.ResponseBeginBlock, error) {
366 reqres := cli.queueRequest(types.ToRequestBeginBlock(req))

Callers

nothing calls this directly

Calls 5

queueRequestMethod · 0.95
FlushSyncMethod · 0.95
ErrorMethod · 0.95
ToRequestInitChainFunction · 0.92
GetInitChainMethod · 0.45

Tested by

no test coverage detected