You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: correct DataLayer wallet type constant from 14 to 11
getDLWalletId() was searching for WalletType 14 but chia-blockchain
defines DATA_LAYER as 11 (and has since 2022). This meant the entire
transaction health and recovery system — rejected tx detection,
auto-clearing, DL unconfirmed tx gating — was silently disabled on
real nodes.
The original integration test was tautological: it stubbed type 14 in
the mock response then asserted CADT found type 14. It also ran under
USE_SIMULATOR=true which short-circuits getDLWalletId() to return '2'
without ever hitting the RPC path.
- Extract findDLWalletInResponse() pure function with named constant
CHIA_WALLET_TYPE_DATA_LAYER = 11, testable without simulator bypass
- Add __test_resetDLWalletCache() to prevent cross-test cache leakage
- Replace tautological test with findDLWalletInResponse unit tests
that validate the constant value and reject adjacent type values
- Add live-api test (wallet-health.live.spec.js) that calls the real
Chia wallet RPC get_wallets and verifies CADT's constant matches
- Run wallet-health live test in both v1 and v2 CI jobs as an early
sanity check before the longer org-creation tests
0 commit comments