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

Liquid staking unit and integration tests #3385

Merged
merged 15 commits into from
Aug 31, 2021
Prev Previous commit
Next Next commit
init delegation
sasurobert committed Aug 29, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 2d18f51fed852e8298da62727c576eb834c239ac
2 changes: 1 addition & 1 deletion integrationTests/testProcessorNode.go
Original file line number Diff line number Diff line change
@@ -2343,7 +2343,7 @@ func (tpn *TestProcessorNode) LoadTxSignSkBytes(skBytes []byte) {
// ProposeBlock proposes a new block
func (tpn *TestProcessorNode) ProposeBlock(round uint64, nonce uint64) (data.BodyHandler, data.HeaderHandler, [][]byte) {
startTime := time.Now()
maxTime := time.Second * 2
maxTime := time.Second * 200000
Copy link
Contributor

Choose a reason for hiding this comment

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

please revert this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done


haveTime := func() bool {
elapsedTime := time.Since(startTime)
3 changes: 2 additions & 1 deletion integrationTests/vm/delegation/liquidStaking_test.go
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ func TestDelegationSystemSCWithLiquidStaking(t *testing.T) {
}

nodes, idxProposers, delegationAddress, tokenID, nonce, round := setupNodesDelegationContractInitLiquidStaking(t)

_ = logger.SetLogLevel("*:TRACE")
txData := txDataBuilder.NewBuilder().Clear().
Func("claimDelegatedPosition").
Bytes(big.NewInt(1).Bytes()).
@@ -134,6 +134,7 @@ func setupNodesDelegationContractInitLiquidStaking(
}

initialVal := big.NewInt(10000000000)
initialVal.Mul(initialVal, initialVal)
integrationTests.MintAllNodes(nodes, initialVal)

delegationAddress := createNewDelegationSystemSC(nodes[0], nodes)