Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add shutdown_script to rpc #210

Merged
merged 4 commits into from
Oct 4, 2024

Conversation

quake
Copy link
Member

@quake quake commented Oct 3, 2024

this PR reverted some changes of #174 by reusing the shutdown_script field of ChannelActorState, and added an optional field to the rpc open_channel and accept_channel.

@@ -100,6 +102,12 @@ pub async fn main() {
node_public_key.clone().into(),
)));

let secret_key = ckb_config.read_secret_key().unwrap();
let secp = Secp256k1::new();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using secp256k1_instance in src/fiber/types.rs is better, because that function only initialize secp251k1 instance once and keep it in memory (there are many places we need to use the secp256k1 instance).

@quake quake merged commit 8015b03 into nervosnetwork:main Oct 4, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants