Commit b3a67a40 authored by mdj33's avatar mdj33 Committed by vipwzw

fix linter

parent 59f5fe56
...@@ -41,7 +41,6 @@ const ( ...@@ -41,7 +41,6 @@ const (
defaultMainBlockHashForkHeight int64 = 209186 //calc block hash fork height in main chain defaultMainBlockHashForkHeight int64 = 209186 //calc block hash fork height in main chain
mainParaSelfConsensusForkHeight int64 = types.MaxHeight //para chain self consensus height switch, must >= ForkParacrossCommitTx of main mainParaSelfConsensusForkHeight int64 = types.MaxHeight //para chain self consensus height switch, must >= ForkParacrossCommitTx of main
mainForkParacrossCommitTx int64 = types.MaxHeight //support paracross commit tx fork height in main chain: ForkParacrossCommitTx mainForkParacrossCommitTx int64 = types.MaxHeight //support paracross commit tx fork height in main chain: ForkParacrossCommitTx
batchFetchBlockCount int64 = 1000
) )
var ( var (
......
...@@ -98,15 +98,15 @@ func getParaNodeIDSuffix(id string) string { ...@@ -98,15 +98,15 @@ func getParaNodeIDSuffix(id string) string {
} }
ids := strings.Split(id, "-") ids := strings.Split(id, "-")
txId := ids[len(ids)-1] txID := ids[len(ids)-1]
if strings.HasPrefix(txId, "0x") { if strings.HasPrefix(txID, "0x") {
return txId return txID
} }
//对于nodegroup 创建的"mavl-paracross-title-nodegroupid-user.p.para.-0xb6cd0274587...a61e444e9f848a4c02d7b-1"特殊场景 //对于nodegroup 创建的"mavl-paracross-title-nodegroupid-user.p.para.-0xb6cd0274587...a61e444e9f848a4c02d7b-1"特殊场景
if len(ids) > 1 { if len(ids) > 1 {
txId = ids[len(ids)-2] + "-" + txId txID = ids[len(ids)-2] + "-" + txID
if strings.HasPrefix(txId, "0x") { if strings.HasPrefix(txID, "0x") {
return txId return txID
} }
} }
return id return id
......
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