Documentation ¶
Index ¶
Constants ¶
View Source
const ( // The default fee is passed to the user as part of the asset.WalletInfo // structure. For details on DOGE-specific limits, see: // https://github.com/dogecoin/dogecoin/blob/master/doc/fee-recommendation.md // and https://github.com/dogecoin/dogecoin/discussions/2347 // Dogecoin Core v1.14.5 adopts proposed fees for tx creation: // https://github.com/dogecoin/dogecoin/releases/tag/v1.14.5 // https://github.com/dogecoin/dogecoin/commit/9c6af6d84179e46002338bb5b9a69c6f2367c731 // These limits were applied to mining and relay in v1.14.4. DefaultFee = 4_000 // 0.04 DOGE/kB, 4x the 0.01 recommended by dogecoin core (DEFAULT_TRANSACTION_FEE) DefaultFeeRateLimit = 50_000 // 0.5 DOGE/kB, where v1.14.5 considers 1.0 DOGE/kB "high" (HIGH_TX_FEE_PER_KB) )
Variables ¶
View Source
var ( UnitInfo = dex.UnitInfo{ AtomicUnit: "Sats", Conventional: dex.Denomination{ Unit: "DOGE", ConversionFactor: 1e8, }, } // MainNetParams are the clone parameters for mainnet. MainNetParams = btc.ReadCloneParams(&btc.CloneParams{ PubKeyHashAddrID: 0x1e, ScriptHashAddrID: 0x16, CoinbaseMaturity: 30, Net: 0xc0c0c0c0, GenesisHash: mustHash("1a91e3dace36e2be3bf030a65679fe821aa1d6ef92e7c9902eb318182c355691"), }) // TestNet4Params are the clone parameters for testnet. TestNet4Params = btc.ReadCloneParams(&btc.CloneParams{ PubKeyHashAddrID: 0x71, ScriptHashAddrID: 0xc4, CoinbaseMaturity: 30, Net: 0xfcc1b7dc, GenesisHash: mustHash("bb0a78264637406b6360aad926284d544d7049f45189db5664f3c4d07350559e"), }) // RegressionNetParams are the clone parameters for simnet. RegressionNetParams = btc.ReadCloneParams(&btc.CloneParams{ PubKeyHashAddrID: 0x6f, ScriptHashAddrID: 0xc4, CoinbaseMaturity: 60, Net: 0xfabfb5da, GenesisHash: nil, }) )
Functions ¶
func DeserializeBlock ¶
DeserializeBlock decodes the bytes of a Dogecoin block. The block header and transaction serializations are identical to Bitcoin, but there is an optional "AuxPOW" section to support merged mining. The AuxPOW section is after the nonce field of the header, but before the block's transactions. This function decodes and discards the AuxPOW section if it exists.
Refs: https://en.bitcoin.it/wiki/Merged_mining_specification#Aux_proof-of-work_block https://github.com/dogecoin/dogecoin/blob/31afd133119dd2e15862d46530cb99424cf564b0/src/primitives/block.h#L41-L46 https://github.com/dogecoin/dogecoin/blob/31afd133119dd2e15862d46530cb99424cf564b0/src/auxpow.h#L155-L160
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.