Regtest coin: SHORTNAME RPLM instead of the inherited TPLM
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f3be502d53
commit
6ce38af5b7
2 files changed
+6
No files matched your search
@@ -323,6 +323,7 @@ class PalladiumTestnet(Palladium):
|
|||||||
|
|
||||||
|
|
||||||
class PalladiumRegtest(PalladiumTestnet):
|
class PalladiumRegtest(PalladiumTestnet):
|
||||||
|
SHORTNAME = "RPLM"
|
||||||
NET = "regtest"
|
NET = "regtest"
|
||||||
BECH32_HRP = "rplm"
|
BECH32_HRP = "rplm"
|
||||||
# same genesis block as Bitcoin regtest
|
# same genesis block as Bitcoin regtest
|
||||||
|
|||||||
@@ -30,6 +30,11 @@ def test_chain_params(coin, net, rpc_port, p2pkh, p2sh, genesis):
|
|||||||
assert coin.DESERIALIZER is lib_tx.DeserializerSegWit
|
assert coin.DESERIALIZER is lib_tx.DeserializerSegWit
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.parametrize("coin,shortname", [(Palladium, "PLM"), (PalladiumTestnet, "TPLM"), (PalladiumRegtest, "RPLM")])
|
||||||
|
def test_shortname(coin, shortname):
|
||||||
|
assert coin.SHORTNAME == shortname
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize("coin,net", [(c, n) for c, n, *_ in PARAMS])
|
@pytest.mark.parametrize("coin,net", [(c, n) for c, n, *_ in PARAMS])
|
||||||
def test_lookup_coin_class(coin, net):
|
def test_lookup_coin_class(coin, net):
|
||||||
assert Coin.lookup_coin_class("Palladium", net) is coin
|
assert Coin.lookup_coin_class("Palladium", net) is coin
|
||||||
|
|||||||
Reference in new issue
Block a user