Commit 72bfc44d authored by suyanlong's avatar suyanlong

modify monitor interface

parent f07ce479
Pipeline #7932 failed with stages
......@@ -254,8 +254,8 @@ func (a *appChain) ListenIBTP() <-chan *pb.IBTP {
}
// QueryIBTP queries interchain tx recorded in appchain given ibtp id
//func (a *appChain) QueryIBTP(to string,id string) (*pb.IBTP, error) {
func (a *appChain) QueryIBTP(id string) (*pb.IBTP, error) {
func (a *appChain) QueryIBTP(to string, id string) (*pb.IBTP, error) {
//func (a *appChain) QueryIBTP(id string) (*pb.IBTP, error) {
// TODO(xcc): Encapsulate as a function
args := strings.Split(id, "-")
if len(args) != 3 {
......
......@@ -8,7 +8,7 @@ type Monitor interface {
ListenIBTP() <-chan *pb.IBTP
// query historical ibtp by its id
//QueryIBTP(id string) (*pb.IBTP, error)
QueryIBTP(id string) (*pb.IBTP, error)
QueryIBTP(to string, id string) (*pb.IBTP, error)
// QueryLatestMeta queries latest index map of ibtps threw on appchain
QueryOuterMeta() map[string]uint64
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment