Commit 18ba0d07 authored by jiangpeng's avatar jiangpeng Committed by vipwzw

support default genesis amount

parent d52b87a1
...@@ -88,6 +88,9 @@ func New(cfg *types.Consensus, sub []byte) queue.Module { ...@@ -88,6 +88,9 @@ func New(cfg *types.Consensus, sub []byte) queue.Module {
if sub != nil { if sub != nil {
types.MustDecode(sub, &subcfg) types.MustDecode(sub, &subcfg)
} }
if subcfg.GenesisAmount <= 0 {
subcfg.GenesisAmount = 1e8
}
if subcfg.ParaRemoteGrpcClient != "" { if subcfg.ParaRemoteGrpcClient != "" {
grpcSite = subcfg.ParaRemoteGrpcClient grpcSite = subcfg.ParaRemoteGrpcClient
} }
......
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