Skip to content

Commit

Permalink
Removed old constants, added warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Dec 18, 2020
1 parent dd4213f commit bafe69c
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,6 @@ import (

const (

// Spec: https://github.com/bitcoin-sv-specs/brfc-misc/tree/master/feespec

// DefaultDataRate is the default rate for feeType: data (500 satoshis per X bytes)
DefaultDataRate int = 500

// DefaultStandardRate is the default rate for feeType: standard (500 satoshis per X bytes)
DefaultStandardRate int = 500

// DefaultRateBytes is the default amount of bytes to calculate fees (X Satoshis per X bytes)
DefaultRateBytes int = 1000

// DustLimit is the minimum value for a tx that can be spent
// Note: this is being deprecated in the new node software (TBD)
DustLimit uint64 = 546
Expand Down Expand Up @@ -52,6 +41,7 @@ func TxFromHex(rawHex string) (*bt.Tx, error) {
// CreateTxWithChange will automatically create the change output and calculate fees
//
// Use this if you don't want to figure out fees/change for a tx
// USE AT YOUR OWN RISK - this will modify a "pay-to" output to accomplish auto-fees
func CreateTxWithChange(utxos []*Utxo, payToAddresses []*PayToAddress, opReturns []OpReturnData,
changeAddress string, standardRate, dataRate *bt.Fee,
privateKey *bsvec.PrivateKey) (*bt.Tx, error) {
Expand Down Expand Up @@ -175,6 +165,7 @@ func draftTx(utxos []*Utxo, payToAddresses []*PayToAddress, opReturns []OpReturn
// CreateTxWithChangeUsingWif will automatically create the change output and calculate fees
//
// Use this if you don't want to figure out fees/change for a tx
// USE AT YOUR OWN RISK - this will modify a "pay-to" output to accomplish auto-fees
func CreateTxWithChangeUsingWif(utxos []*Utxo, payToAddresses []*PayToAddress, opReturns []OpReturnData,
changeAddress string, standardRate, dataRate *bt.Fee, wif string) (*bt.Tx, error) {

Expand Down

0 comments on commit bafe69c

Please sign in to comment.