Skip to content

Commit

Permalink
signer: Upgrade VLS crates to version 0.11.0rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
cdecker committed Jan 3, 2024
1 parent 6ab8f32 commit 166a807
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 28 deletions.
46 changes: 24 additions & 22 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ cln-grpc = "0.1.7"
cln-rpc = "0.1.7"
cln-plugin = "0.1.7"

vls-core = "=0.10.1"
vls-persist = "=0.10.0"
vls-protocol-signer = "=0.10.0"
vls-protocol = "=0.10.0"
vls-core = "=0.11.0-rc.1"
vls-persist = "=0.11.0-rc.1"
vls-protocol-signer = "=0.11.0-rc.1"
vls-protocol = "=0.11.0-rc.1"


# Config for 'cargo dist'
Expand Down
9 changes: 8 additions & 1 deletion libs/gl-client/src/persist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use lightning_signer::channel::ChannelStub;
use lightning_signer::node::NodeConfig;
use lightning_signer::node::NodeState;
use lightning_signer::persist::ChainTrackerListenerEntry;
use lightning_signer::persist::{Error, Persist};
use lightning_signer::persist::{Error, Persist, SignerId};
use lightning_signer::policy::validator::ValidatorFactory;
use lightning_signer::SendSync;
use log::{trace, warn};
Expand Down Expand Up @@ -530,4 +530,11 @@ impl Persist for MemoryPersister {
fn clear_database(&self) -> Result<(), Error> {
self.state.lock().unwrap().clear()
}

fn signer_id(&self) -> SignerId {
// The signers are clones of each other in Greenlight, and as
// such we should not need to differentiate them. We therefore
// just return a static dummy ID.
[0u8; 16]
}
}
2 changes: 1 addition & 1 deletion libs/gl-client/src/signer/resolve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl Resolver {
Message::GetChannelBasepoints(_) => true,
Message::ValidateCommitmentTx(_) => true,
Message::SignWithdrawal(_) => true,
Message::ReadyChannel(_) => true,
Message::SetupChannel(_) => true,
Message::GetPerCommitmentPoint(_) => true,
Message::ValidateRevocation(_) => true,
Message::NewChannel(_) => true,
Expand Down

0 comments on commit 166a807

Please sign in to comment.