1
0
Files
electrum/electrum
SomberNight 5b9b616146 simple_config: allow deepcopy-ing ConfigVars
Was getting error:
```
>>> import copy
>>> from electrum.simple_config import SimpleConfig
>>> copy.deepcopy(SimpleConfig.EXPERIMENTAL_LN_FORWARD_PAYMENTS)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "...\Python\Python310\lib\copy.py", line 161, in deepcopy
    rv = reductor(4)
TypeError: cannot pickle 'ConfigVar' object
```

This is useful in tests/test_lnpeer.py, to deepcopy the GRAPH_DEFINITIONS dict.
2023-07-11 14:50:09 +00:00
..
2023-07-11 12:51:37 +02:00
2022-07-07 18:29:01 +02:00
2023-04-24 12:58:01 +00:00
2022-10-20 18:43:54 +00:00
2023-06-01 22:59:40 +00:00
2023-05-25 17:39:48 +00:00
2023-06-28 16:49:28 +02:00
2023-05-25 17:39:48 +00:00
2023-04-24 12:58:01 +00:00
2023-04-24 12:58:01 +00:00
2023-05-16 10:06:55 +02:00
2021-04-08 19:49:43 +02:00
2023-04-24 12:58:01 +00:00
2023-05-25 17:39:48 +00:00
2023-06-24 13:00:15 +02:00
2023-02-17 11:43:11 +00:00
2021-07-15 14:52:25 +00:00
2023-02-17 11:43:11 +00:00
2023-02-17 11:43:11 +00:00
2023-05-25 17:39:48 +00:00
2021-07-16 11:27:36 +02:00
2023-06-28 16:49:28 +02:00
2021-03-21 00:36:23 -04:00
2022-10-31 16:13:22 +00:00
2023-07-11 12:51:37 +02:00
2022-04-11 17:40:22 +02:00
2023-04-24 12:58:26 +00:00
2022-10-31 16:13:22 +00:00
2022-11-18 23:13:25 +01:00
2023-04-19 22:31:08 +00:00
2023-04-24 12:58:01 +00:00
2023-02-17 11:43:11 +00:00
2023-05-25 17:39:48 +00:00
2023-06-24 12:56:55 +02:00
2023-06-28 16:49:28 +02:00