Skip to content
This repository was archived by the owner on Jul 27, 2022. It is now read-only.

Problem: (CRO-494) not possible to create unjail transaction in client-cli#552

Closed
leejw51 wants to merge 1 commit intocrypto-com:masterfrom
leejw51crypto:cro-494
Closed

Problem: (CRO-494) not possible to create unjail transaction in client-cli#552
leejw51 wants to merge 1 commit intocrypto-com:masterfrom
leejw51crypto:cro-494

Conversation

@leejw51
Copy link
Copy Markdown
Contributor

@leejw51 leejw51 commented Nov 4, 2019

Solution: call unjail in cli

@leejw51crypto
Copy link
Copy Markdown
Collaborator

confirmed it is working fine with 4 nodes using HW enclave

@codecov
Copy link
Copy Markdown

codecov bot commented Nov 4, 2019

Codecov Report

Merging #552 into master will decrease coverage by 0.14%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master     #552      +/-   ##
==========================================
- Coverage   67.39%   67.24%   -0.15%     
==========================================
  Files         122      122              
  Lines       14203    14167      -36     
==========================================
- Hits         9572     9527      -45     
- Misses       4631     4640       +9
Impacted Files Coverage Δ
client-cli/src/command/transaction_command.rs 0% <0%> (ø) ⬆️
client-core/src/service/hd_key_service.rs 80.82% <0%> (-7.22%) ⬇️
chain-core/src/tx/fee/mod.rs 87.68% <0%> (-0.5%) ⬇️

Copy link
Copy Markdown
Contributor

@tomtau tomtau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this solves a different problem -- "Problem: not possible to create unjail transaction in client-cli" or something like that?

@lezzokafka
Copy link
Copy Markdown
Collaborator

lezzokafka commented Nov 5, 2019

This PR is more for creating an unjail Tx, which can become part of CRO-494;
the test workflow can be something like :

  • Run a blockchain with multiple validators;
  • Let one of the validator nodes go offline, let it reaches the SIGNING_THRESHOLD within the BLOCK_SIGNING_WINDOW.
    (Remarks: make sure there are sufficient voting power 😹)

====Node supposed to be jailed ====

  • Check if the node is jailed ;
  • Check unbounding is impossible when the node is being jailed;
  • Check un-jailing is impossible within the JAIL_DURATION by sending un-jailing Tx.

====At the end of JAIL_DURATION ====

  • Check if can be un-jailed by an un-jail Tx;
  • Check if the staking address was slashed by LIVENESS_SLASH_RATIO;
  • Check if the node is back to the validator list (given that the staking amount after the slashing=> COUNCIL_NODE_MIN_STAKE ).

@leejw51 leejw51 changed the title Problem:(CRO-494) liveness slashing/jailing not tested with Tendermint Problem: (CRO-494) not possible to create unjail transaction in client-cli Nov 5, 2019
@tomtau
Copy link
Copy Markdown
Contributor

tomtau commented Nov 5, 2019

bors r+

bors bot added a commit that referenced this pull request Nov 5, 2019
552: Problem: (CRO-494) not possible to create unjail transaction in client-cli r=tomtau a=leejw51

Solution: call unjail in cli

Co-authored-by: Jongwhan Lee <jonghwan@crypto.com>
@bors
Copy link
Copy Markdown
Contributor

bors bot commented Nov 5, 2019

Canceled

…t-cli

Solution: call unjail in cli
increase coverage
@tomtau
Copy link
Copy Markdown
Contributor

tomtau commented Nov 5, 2019

bors r+

bors bot added a commit that referenced this pull request Nov 5, 2019
552: Problem: (CRO-494) not possible to create unjail transaction in client-cli r=tomtau a=leejw51

Solution: call unjail in cli

555: Problem: (CRO-538) Caching is too huge and timeout exceeded in Travis r=tomtau a=calvinlauco

Solution: Disable caching in nightly and increase test allowed timeout


Co-authored-by: Jongwhan Lee <jonghwan@crypto.com>
Co-authored-by: Calvin Lau <calvinlauco@gmail.com>
@leejw51crypto
Copy link
Copy Markdown
Collaborator

wallet bug

@bors
Copy link
Copy Markdown
Contributor

bors bot commented Nov 5, 2019

Timed out (retrying...)

bors bot added a commit that referenced this pull request Nov 5, 2019
552: Problem: (CRO-494) not possible to create unjail transaction in client-cli r=tomtau a=leejw51

Solution: call unjail in cli

Co-authored-by: Jongwhan Lee <jonghwan@crypto.com>
@bors
Copy link
Copy Markdown
Contributor

bors bot commented Nov 5, 2019

Timed out

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants