// Get application Merkle root hash func cmdCommit(c *cli.Context) { res, err := makeRequest(conn, types.RequestCommit()) if err != nil { fmt.Println(err.Error()) return } printResponse(res, Fmt("%X", res.Data)) }
func (cli *TMSPClient) CommitSync() (hash []byte, log string, err error) { reqres := cli.queueRequest(types.RequestCommit()) cli.FlushSync() if cli.err != nil { return nil, "", cli.err } res := reqres.Response return res.Data, res.Log, nil }
func (cli *TMSPClient) CommitAsync() *ReqRes { return cli.queueRequest(types.RequestCommit()) }