feat(executor): handling invalid destination chain id

When the destination chain id of ibtp is not exist in bitxhub, its content should still be processed.
close #22
This commit is contained in:
Alexader 2020-04-17 10:29:45 +08:00
parent 5c47b60284
commit ae54604bf9
1 changed files with 0 additions and 1 deletions

View File

@ -280,7 +280,6 @@ func (x *Interchain) HandleIBTP(data []byte) *boltvm.Response {
ok = x.Has(x.appchainKey(ibtp.To)) ok = x.Has(x.appchainKey(ibtp.To))
if !ok { if !ok {
x.Logger().WithField("chain_id", ibtp.To).Warn("target appchain does not exist") x.Logger().WithField("chain_id", ibtp.To).Warn("target appchain does not exist")
return boltvm.Success(nil)
} }
app := &appchain{} app := &appchain{}