Exception: OpenReceive::Server::SpendCapableWalletError
- Inherits:
-
StandardError
- Object
- StandardError
- OpenReceive::Server::SpendCapableWalletError
- Defined in:
- lib/openreceive/server/errors.rb
Overview
Boot-time refusal: the configured NWC connection advertises spend methods. OpenReceive is receive-only; a spend-capable code in a receive deployment is a live theft risk, so preflight fails closed instead of booting.
Instance Method Summary collapse
-
#initialize(methods) ⇒ SpendCapableWalletError
constructor
A new instance of SpendCapableWalletError.
Constructor Details
#initialize(methods) ⇒ SpendCapableWalletError
Returns a new instance of SpendCapableWalletError.
210 211 212 213 214 215 216 217 218 |
# File 'lib/openreceive/server/errors.rb', line 210 def initialize(methods) super( "The configured NWC connection advertises spend methods " \ "(#{Array(methods).join(', ')}). OpenReceive is receive-only; use a " \ "receive-only NWC code, or override explicitly with " \ "config.allow_spend_capable_wallet = true or " \ "OPENRECEIVE_ALLOW_SPEND_CAPABLE_NWC=1." ) end |