File tree Expand file tree Collapse file tree
lib/core/storage/migrations Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import 'package:bb_mobile/core/storage/sqlite_database.dart' ;
22import 'package:bb_mobile/core/storage/sqlite_database.steps.dart' ;
3+ import 'package:bb_mobile/core/utils/constants.dart' ;
34import 'package:drift/drift.dart' ;
45
56class Schema10To11 {
@@ -41,8 +42,8 @@ class Schema10To11 {
4142 );
4243
4344 final electrumServers = schema11.electrumServers;
44- const fulcrumUrl = 'ssl://fulcrum.bullbitcoin.com:50002' ;
45- const fulcrumUrlWithoutProtocol = 'fulcrum.bullbitcoin.com:50002' ;
45+ final fulcrumUrl = ApiServiceConstants .fulcrumElectrumUrl ;
46+ final fulcrumUrlWithoutProtocol = fulcrumUrl. replaceAll ( 'ssl://' , '' ) ;
4647
4748 // Delete any existing custom entries for the fulcrum server
4849 await (m.database.delete (electrumServers)..where (
@@ -85,7 +86,7 @@ class Schema10To11 {
8586 .into (electrumServers)
8687 .insert (
8788 RawValuesInsertable ({
88- 'url' : const Constant (fulcrumUrl),
89+ 'url' : Constant (fulcrumUrl),
8990 'is_testnet' : const Constant (false ),
9091 'is_liquid' : const Constant (false ),
9192 'priority' : const Constant (0 ),
You can’t perform that action at this time.
0 commit comments