Skip to content

Commit

Permalink
Fix taproot channel
Browse files Browse the repository at this point in the history
  • Loading branch information
22388o committed Dec 6, 2024
1 parent e67f1be commit 518717a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/lightning/taproot_channel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,9 @@ class Transaction {

enum ChannelState { open, funded, closed }

void main() async {
void main(dynamic Network) async {
// Initialize LDK and set up the Lightning Network channel
var ChannelConfig;
final config = ChannelConfig.defaultConfig();
final chan = createChannel(config, Network.bitcoin);

Expand All @@ -151,4 +152,8 @@ void main() async {

// Execute the contract when conditions are met
await dlc.executeContract();
}
}

createChannel(config, bitcoin) {
}

0 comments on commit 518717a

Please sign in to comment.