dcrdex
dcrdex copied to clipboard
client/asset/dcr: Switch to standalone.CheckTransactionSanity when updated module released.
The following will need to be updated once a new version of the blockchain/standalone
module is released since the blockchain
package will eventually be moving internal.
https://github.com/decred/dcrdex/blob/efd7c12e4caaadcb0e5f9266eb9fddb8e505f758/client/asset/dcr/dcr.go#L1861
- err = blockchain.CheckTransactionSanity(contractTx, dcr.chainParams)
+ err = standalone.CheckTransactionSanity(contractTx, dcr.chainParams.MaxTxSize)
Looks like we're still using blockchain.CheckTransactionSanity
in one place on the client. Is this OK?
The function was removed as of blockchain/v5 and instead moved to standalone/v2.
It should be updated as suggested to use the latest code.
It should be updated as suggested to use the latest code.
This change is in place: https://github.com/decred/dcrdex/blob/3cd3679e8177c5a85a1b8ca24d804f29475132f8/client/asset/dcr/dcr.go#L3266
https://github.com/decred/dcrdex/blob/3cd3679e8177c5a85a1b8ca24d804f29475132f8/client/asset/dcr/dcr.go#L38