File tree 4 files changed +25
-9
lines changed
4 files changed +25
-9
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ ENV PATH="/root/.cargo/bin:${PATH}"
17
17
COPY . .
18
18
19
19
# Cargo build
20
- RUN cargo build --release
20
+ RUN cargo build --release --target-dir /target && cp /target/release/node-subtensor ./target/release
21
21
EXPOSE 9946
22
22
23
23
# Run the Substrate node binary
Original file line number Diff line number Diff line change @@ -28,21 +28,18 @@ async function main() {
28
28
) ;
29
29
30
30
// Send the transaction using the sudo account
31
- const unsub = await sudoCall . signAndSend ( sudoAccount , ( { status } ) => {
31
+ await sudoCall . signAndSend ( sudoAccount , ( { status } ) => {
32
32
if ( status . isInBlock ) {
33
33
console . log ( `Transaction included at blockHash ${ status . asInBlock } ` ) ;
34
- } else if ( status . isFinalized ) {
35
- console . log ( `Transaction finalized at blockHash ${ status . asFinalized } ` ) ;
36
- unsub ( ) ;
37
34
process . exit ( 0 ) ;
38
35
}
39
36
} ) ;
40
37
41
- // Disconnect from the provider on error or completion
42
- // provider.disconnect();
43
-
44
38
// We miss disconnect/unref for some reason, so we need explicit successful exit here
45
39
process . exit ( 0 ) ;
46
40
}
47
41
48
- main ( ) . catch ( console . error ) ;
42
+ main ( ) . catch ( ( error ) => {
43
+ console . error ( error ) ;
44
+ process . exit ( 1 ) ;
45
+ } ) ;
Original file line number Diff line number Diff line change @@ -216,3 +216,18 @@ jobs:
216
216
../../scripts/wait_first_block_local.sh
217
217
echo "Executing runtime upgrade"
218
218
node runtimeUpgrade.js
219
+
220
+ # check that runtime upgrade happened (spec version updated)
221
+ # Wait for new blocks after upgrade
222
+ # Balance transfer test
223
+
224
+ # need process exit from JS, it's not exiting
225
+
226
+ # see how to run custom JS with this job (msg from Sam J.)
227
+
228
+ # epoch test: Set subnet1 tempo to 10 blocks
229
+ # - wait for OTF hotkey to receive rewards
230
+ # - check block times
231
+
232
+ # feature for testing hotkey tempos (talk to Samuel - maybe add to fast-blocks)
233
+ # - add childkey test
Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ services:
2
2
localnet :
3
3
ports :
4
4
- 9946:9946
5
+ volumes :
6
+ - type : bind
7
+ source : ./target
8
+ target : /target
5
9
build :
6
10
context : .
7
11
dockerfile : ./.baedeker/Dockerfile
You can’t perform that action at this time.
0 commit comments