Skip to content

Commit

Permalink
Merge pull request #660 from pinheadmz/signet-images
Browse files Browse the repository at this point in the history
update signet test
  • Loading branch information
pinheadmz authored Oct 22, 2024
2 parents 7974c5d + 8568f45 commit 6290072
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 5 deletions.
30 changes: 30 additions & 0 deletions test/data/signet/network.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,33 @@ nodes:
tag: "0.16.1"
addnode:
- miner
- name: tank-11
image:
tag: "98.0.0-invalid-blocks"
addnode:
- miner
- name: tank-12
image:
tag: "94.0.0-5k-inv"
addnode:
- miner
- name: tank-13
image:
tag: "95.0.0-disabled-opcodes"
addnode:
- miner
- name: tank-14
image:
tag: "96.0.0-no-mp-trim"
addnode:
- miner
- name: tank-15
image:
tag: "97.0.0-50-orphans"
addnode:
- miner
- name: tank-16
image:
tag: "99.0.0-unknown-message"
addnode:
- miner
4 changes: 2 additions & 2 deletions test/data/signet/node-defaults.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
image:
repository: bitcoindevproject/bitcoin
pullPolicy: IfNotPresent
pullPolicy: Always
tag: "27.0"

chain: signet

spec:
restartPolicy: Always
restartPolicy: Never

defaultConfig: |
debug=rpc
Expand Down
6 changes: 3 additions & 3 deletions test/signet_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ def check_signet_miner(self):
f"bitcoin rpc miner importdescriptors '{json.dumps(self.signer_data['descriptors'])}'"
)
self.warnet(
f"run resources/scenarios/signet_miner.py --tank=0 generate --min-nbits --address={self.signer_data['address']['address']}"
f"run resources/scenarios/signet_miner.py --tank=0 generate --max-blocks=8 --min-nbits --address={self.signer_data['address']['address']}"
)

def block_one():
for n in range(1, 11):
for n in range(1, 17):
height = int(self.warnet(f"bitcoin rpc tank-{n} getblockcount"))
if height != 1:
if height < 8:
return False
return True

Expand Down

0 comments on commit 6290072

Please sign in to comment.