Skip to content

Commit f36f6fc

Browse files
committed
add ERROR_CODE_OPEN_MINING_CHANNEL_CHANNEL_CAPACITY_EXHAUSTED to mining_sv2
1 parent 59a3e3e commit f36f6fc

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

sv2/subprotocols/mining/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ pub const ERROR_CODE_OPEN_MINING_CHANNEL_STANDARD_CHANNELS_NOT_SUPPORTED_FOR_CUS
112112
"standard-channels-not-supported-for-custom-work";
113113
pub const ERROR_CODE_OPEN_MINING_CHANNEL_EXTENDED_CHANNELS_NOT_SUPPORTED_FOR_STANDARD_JOBS: &str =
114114
"extended-channels-not-supported-for-standard-jobs";
115+
pub const ERROR_CODE_OPEN_MINING_CHANNEL_CHANNEL_CAPACITY_EXHAUSTED: &str =
116+
"channel-capacity-exhausted";
115117
pub const ERROR_CODE_OPEN_MINING_CHANNEL_INVALID_USER_IDENTITY: &str = "invalid-user-identity";
116118
pub const ERROR_CODE_OPEN_MINING_CHANNEL_INVALID_NOMINAL_HASHRATE: &str =
117119
"invalid-nominal-hashrate";

sv2/subprotocols/mining/src/open_channel.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ pub struct OpenMiningChannelError<'decoder> {
299299
///
300300
/// - standard-channels-not-supported-for-custom-work
301301
/// - extended-channels-not-supported-for-standard-jobs
302+
/// - channel-capacity-exhausted
302303
/// - invalid-user-identity
303304
/// - invalid-nominal-hashrate
304305
/// - min-extranonce-size-too-large

0 commit comments

Comments
 (0)