Page MenuHomePhabricator

Replace direct calls of Params() with Config.GetChainParams()
Open, Needs TriagePublic


Direct calls to Params() should be replaced with config.GetChainParams() where appropriate.

Event Timeline

@jasonbcox, should I also try to remove the following functions from DstEncode.h:

// Temporary workaround. Don't rely on global state, pass all parameters in new
// code.

std::string EncodeDestination(const CTxDestination &);
CTxDestination DecodeDestination(const std::string &addr);
bool IsValidDestinationString(const std::string &addr);

BTW: EncodeDestination requires Config, because of support of new bitcoincash address support (config.UseCashAddrEncoding()).

This comment was removed by deadalnix.