Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slash-escrow testing #18

Open
Bill-Kunj opened this issue Apr 15, 2022 · 1 comment
Open

Slash-escrow testing #18

Bill-Kunj opened this issue Apr 15, 2022 · 1 comment
Assignees

Comments

@Bill-Kunj
Copy link
Contributor

The new multi-sig slash-escrow implementation for the RPC custom build (rchain/rchain#3642) requires testing before RPC can launch
https://github.com/rchain/rchain/blob/feature/v0.12-rpc/casper/src/test/resources/MultiSigVault/posMultiSigTransfer.rho
https://github.com/rchain/rchain/blob/feature/v0.12-rpc/casper/src/test/resources/MultiSigVault/posMultiSigConfirm.rho

@Bill-Kunj
Copy link
Contributor Author

Bill-Kunj commented Apr 15, 2022

This test requires a transfer into the slash-escrow account before it can be verified.
Code for getting the slash-escrow REV address with exploreDeploy (thank you @zsluedem):

new return, rl(`rho:registry:lookup`),
  poSCh,
  addrCh  
in {
  rl!(`rho:rchain:pos`, *poSCh) |
  for(@(_, PoS) <- poSCh) {
    @PoS!("getCoopVault", *addrCh)|
    for (@(_,addr,_) <- addrCh){
      return!(addr)
    }
 }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants