You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
### What was the problem?
This PR resolves#78
### How was it solved?
- Refactor the `DB` to stores an `option` of DB and change it to `None`
in `close` function.
### How was it tested?
- Add a new unit test to check the new implementation.
- All tests passed.
shuse2
added a commit
to LiskArchive/lisk-sdk
that referenced
this issue
Dec 10, 2022
### What was the problem?
This PR resolves#7783
### How was it solved?
- Revert generator enable/disable command to have `--use-status-value`
- Move height/max-height-generated/max-height-prevoted as flag
- Revert temporally lisk-db version to the previous version because it
leaves locks value LiskArchive/lisk-db#78
- Fix to pass `keypairs` from `generator` to `endpoint`
- Remove keypair when setting new key
### How was it tested?
1. clean ` rm -rf ~/.lisk/pos-mainchain`
2. encrypt keys `./bin/run keys:encrypt -f
./config/default/dev-validators.json`
3. import new keys `./bin/run keys:import -f
config/default/dev-validators.json`
4. enable block generation `./bin/run generator:enable
lsk2xxvfxaqpm42wr9reokucegh3quypqg9w9aqfo --height=0
--max-height-prevoted=0 --max-height-generated=0`
5. check block is generated (wait for 1 round)
6. check status `./bin/run generator:status --pretty`
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Expected behavior
Closing DB should be completely close the DB without leaving the trace. (lock file or open handles)
Actual behavior
After closing the DB, it leaves the LOCK file and it cannot re-opened
Steps to reproduce
Which version(s) does this affect? (Environment, OS, etc...)
0.3.0-debug.20-94522fbd51ec040e1040cdccd1b0572d805a2825
last working version checked was
52ffbeac2c1b0b188e8df995a1dc6a1634426a27
The text was updated successfully, but these errors were encountered: