Skip to content

Commit

Permalink
use rpc to identify testnet 11
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsutton committed Jun 26, 2023
1 parent c417c8b commit 87ff2ce
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/kaspawallet/daemon/server/create_unsigned_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,14 @@ func (s *server) selectUTXOs(spendAmount uint64, isSendAll bool, feePerInput uin
return nil, 0, 0, err
}

coinbaseMaturity := s.params.BlockCoinbaseMaturity
if dagInfo.NetworkName == "kaspa-testnet-11" {
coinbaseMaturity = 1000
}

for _, utxo := range s.utxosSortedByAmount {
if (fromAddresses != nil && !slices.Contains(fromAddresses, utxo.address)) ||
!isUTXOSpendable(utxo, dagInfo.VirtualDAAScore, s.params.BlockCoinbaseMaturity) {
!isUTXOSpendable(utxo, dagInfo.VirtualDAAScore, coinbaseMaturity) {
continue
}

Expand Down

0 comments on commit 87ff2ce

Please sign in to comment.