Commit 2b2f4c3
committed
Don't bother
The new `OffersMessageFlow` stores yet another `Secp256k1` context
internally, but to initialize requires passing one in explicitly.
We call this in `ChannelManager` by `clone`ing the context we have
before passing it in, allowing us to keep the randomization we do
in `ChannelManager::new`.
This isn't really worth the API annoyance of passing in a
`Secp256k1` context, though, and luckily the contexts are
eventually going to go away upstream eventually, so we just drop
the argument from `OffersMessageFlow::new`, building an
unrandomized `Secp256k1` context internally instead.clone'ing a Secp256k1 context into the offers flow1 parent f239e2f commit 2b2f4c3
2 files changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3962 | 3962 | | |
3963 | 3963 | | |
3964 | 3964 | | |
3965 | | - | |
| 3965 | + | |
3966 | 3966 | | |
3967 | 3967 | | |
3968 | 3968 | | |
| |||
17997 | 17997 | | |
17998 | 17998 | | |
17999 | 17999 | | |
18000 | | - | |
18001 | 18000 | | |
18002 | 18001 | | |
18003 | 18002 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
0 commit comments