mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-07-31 07:43:19 +00:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
4bb5bf25d3 | ||
![]() |
25c2dd8670 | ||
![]() |
c93100ccd0 |
@ -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,
|
||||||
|
@ -210,7 +210,7 @@ func getOutputsHash(tx *externalapi.DomainTransaction, inputIndex int, hashType
|
|||||||
}
|
}
|
||||||
|
|
||||||
func getPayloadHash(tx *externalapi.DomainTransaction, reusedValues *SighashReusedValues) *externalapi.DomainHash {
|
func getPayloadHash(tx *externalapi.DomainTransaction, reusedValues *SighashReusedValues) *externalapi.DomainHash {
|
||||||
if tx.SubnetworkID.Equal(&subnetworks.SubnetworkIDNative) {
|
if tx.SubnetworkID.Equal(&subnetworks.SubnetworkIDNative) && len(tx.Payload) == 0 {
|
||||||
return externalapi.NewZeroHash()
|
return externalapi.NewZeroHash()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ const validCharacters = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrs
|
|||||||
const (
|
const (
|
||||||
appMajor uint = 0
|
appMajor uint = 0
|
||||||
appMinor uint = 12
|
appMinor uint = 12
|
||||||
appPatch uint = 20
|
appPatch uint = 22
|
||||||
)
|
)
|
||||||
|
|
||||||
// appBuild is defined as a variable so it can be overridden during the build
|
// appBuild is defined as a variable so it can be overridden during the build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user