Skip to content

Commit

Permalink
accept both xch and txch for now
Browse files Browse the repository at this point in the history
  • Loading branch information
madMAx43v3r committed Jun 30, 2021
1 parent b722db9 commit dcaebfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chia_plot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ std::vector<uint8_t> bech32_address_decode(const std::string& addr)
if(res.encoding != bech32::Bech32m) {
throw std::logic_error("invalid contract address (!Bech32m): " + addr);
}
if(res.hrp != "txch") {
throw std::logic_error("invalid contract address (" + res.hrp + " != txch): " + addr);
if(res.hrp != "xch" && res.hrp != "txch") {
throw std::logic_error("invalid contract address (" + res.hrp + " != xch): " + addr);
}
if(res.dp.size() != 52) {
throw std::logic_error("invalid contract address (size != 52): " + addr);
Expand Down

0 comments on commit dcaebfa

Please sign in to comment.