@@ -41,6 +41,10 @@ import { openSqliteDatabase } from "../src/sqlite/driver.js";
4141import { openSqliteStore } from "../src/sqlite/index.js" ;
4242import { createTempDirectory , generateBlocks , getMiningDescriptor , removeTempDirectory , replayBlocks , serializeStateHex , waitForCondition } from "./bitcoind-helpers.js" ;
4343import { createWalletReadContext } from "./current-model-helpers.js" ;
44+ import {
45+ CURRENT_CLIENT_VERSION ,
46+ NEWER_CLIENT_VERSION ,
47+ } from "./version-helpers.js" ;
4448
4549interface RegtestFixture {
4650 rootDir : string ;
@@ -2197,7 +2201,7 @@ test("attach restarts a compatible stale daemon when expectedBinaryVersion is ne
21972201 dataDir : fixture . dataDir ,
21982202 databasePath : fixture . databasePath ,
21992203 walletRootId,
2200- expectedBinaryVersion : "1.1.12" ,
2204+ expectedBinaryVersion : CURRENT_CLIENT_VERSION ,
22012205 startupTimeoutMs : 5_000 ,
22022206 } ) ;
22032207
@@ -2238,7 +2242,7 @@ test("attach restarts a compatible unparseable daemon when expectedBinaryVersion
22382242 dataDir : fixture . dataDir ,
22392243 databasePath : fixture . databasePath ,
22402244 walletRootId,
2241- expectedBinaryVersion : "1.1.12" ,
2245+ expectedBinaryVersion : CURRENT_CLIENT_VERSION ,
22422246 startupTimeoutMs : 5_000 ,
22432247 } ) ;
22442248
@@ -2261,8 +2265,8 @@ test("attach restarts a compatible unparseable daemon when expectedBinaryVersion
22612265
22622266test ( "attach keeps compatible equal and newer daemon versions running" , async ( ) => {
22632267 const cases = [
2264- { name : "equal" , binaryVersion : "1.1.12" } ,
2265- { name : "newer" , binaryVersion : "1.1.13" } ,
2268+ { name : "equal" , binaryVersion : CURRENT_CLIENT_VERSION } ,
2269+ { name : "newer" , binaryVersion : NEWER_CLIENT_VERSION } ,
22662270 ] ;
22672271
22682272 for ( const testCase of cases ) {
@@ -2285,7 +2289,7 @@ test("attach keeps compatible equal and newer daemon versions running", async ()
22852289 dataDir : fixture . dataDir ,
22862290 databasePath : fixture . databasePath ,
22872291 walletRootId,
2288- expectedBinaryVersion : "1.1.12" ,
2292+ expectedBinaryVersion : CURRENT_CLIENT_VERSION ,
22892293 startupTimeoutMs : 1_000 ,
22902294 } ) ;
22912295
@@ -2338,7 +2342,7 @@ test("attach rejects a live daemon with incompatible service metadata without sp
23382342 dataDir : fixture . dataDir ,
23392343 databasePath : fixture . databasePath ,
23402344 walletRootId,
2341- expectedBinaryVersion : "1.1.12" ,
2345+ expectedBinaryVersion : CURRENT_CLIENT_VERSION ,
23422346 startupTimeoutMs : 1_000 ,
23432347 } ) ,
23442348 / i n d e x e r _ d a e m o n _ s e r v i c e _ v e r s i o n _ m i s m a t c h / ,
@@ -2367,7 +2371,7 @@ test("attach accepts a live daemon for a different wallet root when the daemon i
23672371 dataDir : fixture . dataDir ,
23682372 databasePath : fixture . databasePath ,
23692373 walletRootId,
2370- expectedBinaryVersion : "1.1.12" ,
2374+ expectedBinaryVersion : CURRENT_CLIENT_VERSION ,
23712375 startupTimeoutMs : 1_000 ,
23722376 } ) ;
23732377 await daemon . close ( ) ;
@@ -2395,7 +2399,7 @@ test("attach rejects a live daemon with an incompatible schema version", async (
23952399 dataDir : fixture . dataDir ,
23962400 databasePath : fixture . databasePath ,
23972401 walletRootId,
2398- expectedBinaryVersion : "1.1.12" ,
2402+ expectedBinaryVersion : CURRENT_CLIENT_VERSION ,
23992403 startupTimeoutMs : 1_000 ,
24002404 } ) ,
24012405 / i n d e x e r _ d a e m o n _ s c h e m a _ m i s m a t c h / ,
0 commit comments