Skip to content

Add support for the signet test network#2387

Merged
remyers merged 3 commits intoACINQ:masterfrom
remyers:signet
Aug 19, 2022
Merged

Add support for the signet test network#2387
remyers merged 3 commits intoACINQ:masterfrom
remyers:signet

Conversation

@remyers
Copy link
Contributor

@remyers remyers commented Aug 18, 2022

Requires 0.24 version of bitcoin-lib (#70) which exposes hash of signet genesis block.

@codecov-commenter
Copy link

codecov-commenter commented Aug 18, 2022

Codecov Report

Merging #2387 (e3c92ae) into master (8f2028f) will increase coverage by 0.00%.
The diff coverage is 66.66%.

@@           Coverage Diff           @@
##           master    #2387   +/-   ##
=======================================
  Coverage   84.94%   84.94%           
=======================================
  Files         198      198           
  Lines       15280    15286    +6     
  Branches      640      646    +6     
=======================================
+ Hits        12979    12985    +6     
  Misses       2301     2301           
Impacted Files Coverage Δ
...ir-core/src/main/scala/fr/acinq/eclair/Setup.scala 78.80% <0.00%> (-0.44%) ⬇️
...cinq/eclair/blockchain/watchdogs/ExplorerApi.scala 45.09% <50.00%> (+0.20%) ⬆️
.../scala/fr/acinq/eclair/payment/Bolt11Invoice.scala 91.93% <50.00%> (-0.46%) ⬇️
...re/src/main/scala/fr/acinq/eclair/NodeParams.scala 93.14% <100.00%> (+0.02%) ⬆️
...air/crypto/keymanager/LocalChannelKeyManager.scala 88.63% <100.00%> (ø)
...eclair/crypto/keymanager/LocalNodeKeyManager.scala 100.00% <100.00%> (ø)
...-core/src/main/scala/fr/acinq/eclair/package.scala 80.76% <100.00%> (ø)
...scala/fr/acinq/eclair/router/BalanceEstimate.scala 98.91% <0.00%> (-1.09%) ⬇️
...fr/acinq/eclair/channel/InteractiveTxBuilder.scala 86.13% <0.00%> (-0.59%) ⬇️
...in/scala/fr/acinq/eclair/channel/fsm/Channel.scala 87.58% <0.00%> (+0.11%) ⬆️
... and 2 more

@remyers remyers marked this pull request as ready for review August 18, 2022 19:14
Copy link
Member

@t-bast t-bast left a comment

Choose a reason for hiding this comment

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

There are a few more things you need to modify:

  • in reference.conf you should update the documentation for the chain parameter to mention signet support
  • in NodeParams you should update the chain2Hash map to include the signet case
  • you should update the release doc to mention signet support in the Miscellaneous improvements and bug fixes section

Otherwise LGTM 👍

@remyers
Copy link
Contributor Author

remyers commented Aug 19, 2022

Tested (by-hand) signet channel open/sendtoroute/close using config files and script commands from lightning-cfg after updating for signet.

final tx: https://mempool.space/signet/tx/950936af3ad8aa1fd916c4d9b9cc43cfec50806c0a0147c3339420952c17acf9

@remyers
Copy link
Contributor Author

remyers commented Aug 19, 2022

  • you should update the release doc to mention signet support in the Miscellaneous improvements and bug fixes section

fixed in 75c40c1

@remyers
Copy link
Contributor Author

remyers commented Aug 19, 2022

@t-bast

  • in reference.conf you should update the documentation for the chain parameter to mention signet support

  • in NodeParams you should update the chain2Hash map to include the signet case

Hmm, these should be changed in the original commit 5aa0819.

@remyers
Copy link
Contributor Author

remyers commented Aug 19, 2022

MempoolTxMonitor successfully detected the channel close on Signet:
image

t-bast
t-bast previously approved these changes Aug 19, 2022
Copy link
Member

@t-bast t-bast left a comment

Choose a reason for hiding this comment

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

Hmm, these should be changed in the original commit 5aa0819.

Right, my bad, github had a filter on only the last commits!
I just reviewed the whole PR, LGTM, this is thorough and well done 👍

@remyers remyers merged commit 323aeec into ACINQ:master Aug 19, 2022
@remyers remyers deleted the signet branch August 19, 2022 09:15
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