mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-26 15:35:55 +00:00
apply post-crescendo coinbase maturity to all nets
This commit is contained in:
parent
c93100ccd0
commit
9ce8c23dbe
@ -33,7 +33,7 @@ type server struct {
|
|||||||
rpcClient *rpcclient.RPCClient // RPC client for ongoing user requests
|
rpcClient *rpcclient.RPCClient // RPC client for ongoing user requests
|
||||||
backgroundRPCClient *rpcclient.RPCClient // RPC client dedicated for address and UTXO background fetching
|
backgroundRPCClient *rpcclient.RPCClient // RPC client dedicated for address and UTXO background fetching
|
||||||
params *dagconfig.Params
|
params *dagconfig.Params
|
||||||
coinbaseMaturity uint64 // Is different from default if we use testnet-11
|
coinbaseMaturity uint64 // Different from go-kaspad default following Crescendo
|
||||||
|
|
||||||
lock sync.RWMutex
|
lock sync.RWMutex
|
||||||
utxosSortedByAmount []*walletUTXO
|
utxosSortedByAmount []*walletUTXO
|
||||||
@ -96,15 +96,8 @@ func Start(params *dagconfig.Params, listen, rpcServer string, keysFilePath stri
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
dagInfo, err := rpcClient.GetBlockDAGInfo()
|
// Post-Crescendo coinbase maturity
|
||||||
if err != nil {
|
coinbaseMaturity := uint64(1000)
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
coinbaseMaturity := params.BlockCoinbaseMaturity
|
|
||||||
if dagInfo.NetworkName == "kaspa-testnet-11" {
|
|
||||||
coinbaseMaturity = 1000
|
|
||||||
}
|
|
||||||
|
|
||||||
serverInstance := &server{
|
serverInstance := &server{
|
||||||
rpcClient: rpcClient,
|
rpcClient: rpcClient,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user