Commit d9c9b3b2 authored by linj's avatar linj Committed by vipwzw

主链更新seq 实现, 在平行链上去主链seq 接口名变化

parent 2b61b2b1
......@@ -276,7 +276,7 @@ func (client *client) ProcEvent(msg *queue.Message) bool {
//get the last sequence in parachain
func (client *client) GetLastSeq() (int64, error) {
blockedSeq, err := client.GetAPI().GetLastBlockSequence()
blockedSeq, err := client.GetAPI().GetLastBlockMainSequence()
if err != nil {
return -2, err
}
......@@ -285,7 +285,7 @@ func (client *client) GetLastSeq() (int64, error) {
func (client *client) GetBlockedSeq(hash []byte) (int64, error) {
//from blockchain db
blockedSeq, err := client.GetAPI().GetSequenceByHash(&types.ReqHash{Hash: hash})
blockedSeq, err := client.GetAPI().GetMainSequenceByHash(&types.ReqHash{Hash: hash})
if err != nil {
return -2, err
}
......
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