dwave-examples / dwave-examples/quantum-blockchain

Multiple parallel runs possible (with interference in graphics, and potential for crashes)

Open
#29 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1
Forks
1
Avg merge
4d 9h
Merged PRs (30d)
2

Description

It is possible to run multiple blockchains simultaneously within a single window - blockchain execution does not terminate when the associated browser window is closed.

Simplest example:

  1. Run a blockchain
  2. Close the browser window (which would be expected to terminate the operation).
  3. Reopen a new browser window
  4. Run another blockchain
    The blockchain initiated in 1. continues to run and update the within the new window 3, alongside the independent run 4.

Similar issues exists with multiple windows open in parallel.

Suggested fix:
Terminate the blockchain execution when windows are closed, or prevent more than one blockchain being executed (by e.g. locking the start button). Perhaps raise errors or reboot when unexpected background processes are found.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the listed sequence of closing and reopening browser windows, then trace the blockchain execution lifecycle and how it is associated with each window. Done means closing a window terminates its blockchain or prevents conflicting runs, and parallel windows no longer interfere or cause crashes.

Written by the indexing model from the issue text.

Assessment

Tech stack
blockchain, python
Domain
blockchain
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.