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

Relaying bnb #832

Merged
merged 437 commits into from Apr 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
437 commits
Select commit Hold shift + click to select a range
7b160bc
remove portal unlock collateral response
0xkraken Mar 9, 2020
840f9af
Merge branch 'relaying-bnb' of https://github.com/incognitochain/inco…
0xkraken Mar 9, 2020
781ebe8
add auto check and create liquidation instruction for portal
0xkraken Mar 10, 2020
03f2e69
beacon portal liquidation producer
0xkraken Mar 10, 2020
855619b
add instruct min aspect ratio
hoang-incognito Mar 10, 2020
f917f07
portal liquidation custodian meta
0xkraken Mar 10, 2020
b4b66d8
portal custodian liquidation meta
0xkraken Mar 10, 2020
23d4be3
detect and build instruction for custodian liquidation
0xkraken Mar 10, 2020
64d35b6
portal liquidation custodian response
0xkraken Mar 10, 2020
6e8c030
shard build portal liquidation custodian response
0xkraken Mar 10, 2020
b46bb41
beacon process custodian liquidation
0xkraken Mar 11, 2020
2a2a7b2
rpc get liquidation custodian status
0xkraken Mar 11, 2020
80c6bbe
update status of redeem request after liquidation custodian
0xkraken Mar 11, 2020
22f3bcc
add rates liquidation
hoang-incognito Mar 11, 2020
c9210e3
fix conflict
hoang-incognito Mar 11, 2020
2d08ab0
update redeem fee in prv
0xkraken Mar 11, 2020
9a46b03
fix bug validate sanity data of portal redeem request
0xkraken Mar 11, 2020
224b06f
create instruction tp
hoang-incognito Mar 11, 2020
68fa29c
Merge branch 'relaying-bnb' of github.com:incognitochain/incognito-ch…
hoang-incognito Mar 11, 2020
cddffc9
return nil
hoang-incognito Mar 11, 2020
5076e0d
beacon portal reward producer/process
0xkraken Mar 11, 2020
0ea620f
resolve conflicts
0xkraken Mar 11, 2020
fcc715d
portal request withdraw reward meta:
0xkraken Mar 11, 2020
290af91
rpc request withdraw portal reward
0xkraken Mar 11, 2020
00decd6
beacon process withdraw portal reward
0xkraken Mar 11, 2020
0e8ba8f
fix buf overflow amount reward
0xkraken Mar 12, 2020
5c1d842
store liquidation exchange rates
hoang-incognito Mar 12, 2020
d41cba5
fix conflict
hoang-incognito Mar 12, 2020
c9e6051
fix bug for req withdraw portal reward
0xkraken Mar 12, 2020
e5a9d8e
Merge branch 'relaying-bnb' of https://github.com/incognitochain/inco…
0xkraken Mar 12, 2020
12c33bb
store liquidate exchange rate
hoang-incognito Mar 12, 2020
7cae90a
Merge branch 'relaying-bnb' of github.com:incognitochain/incognito-ch…
hoang-incognito Mar 12, 2020
8874cad
fix bug split redeem fee for custodian
0xkraken Mar 12, 2020
c795e2a
Merge branch 'relaying-bnb' of https://github.com/incognitochain/inco…
0xkraken Mar 12, 2020
0512837
add rpc get liquadation
hoang-incognito Mar 12, 2020
396d02f
Merge branch 'relaying-bnb' of github.com:incognitochain/incognito-ch…
hoang-incognito Mar 12, 2020
ff2cf06
sort remote addresses map before hashing
0xkraken Mar 13, 2020
ae86108
replace tokenSymbol to tokenID in portal
0xkraken Mar 13, 2020
454e633
add rpc redeem liquidation
hoang-incognito Mar 13, 2020
244c6ee
fix conflict
hoang-incognito Mar 13, 2020
89b3d9b
add constant status
hoang-incognito Mar 13, 2020
d66b559
replace tokensymbol to tokenid in portal.go
0xkraken Mar 13, 2020
de4462b
Merge branch 'relaying-bnb' of https://github.com/incognitochain/inco…
0xkraken Mar 13, 2020
46d2ffd
fix typo
0xkraken Mar 13, 2020
7a6ac01
replace remote address from map to array
0xkraken Mar 13, 2020
119f3b6
replace map to array to make sure creating the same hash data
0xkraken Mar 13, 2020
56978f1
store request redeem liquidation
hoang-incognito Mar 13, 2020
83476f3
Merge branch 'relaying-bnb' of github.com:incognitochain/incognito-ch…
hoang-incognito Mar 13, 2020
f1e9ad8
create redeem liquidate response
hoang-incognito Mar 15, 2020
e3ca725
add db
hoang-incognito Mar 15, 2020
6ba8038
add liquidation custodian deposit
hoang-incognito Mar 15, 2020
0879fa1
add constant
hoang-incognito Mar 15, 2020
fc6b78f
fix bug updating reward
0xkraken Mar 16, 2020
32cdb1f
Merge branch 'relaying-bnb' of https://github.com/incognitochain/inco…
0xkraken Mar 16, 2020
9c2ac64
custodian create topup
hoang-incognito Mar 16, 2020
98af6d9
Merge branch 'relaying-bnb' of github.com:incognitochain/incognito-ch…
hoang-incognito Mar 16, 2020
bd11183
fix bug pushing bnb relaying header chain
0xkraken Mar 16, 2020
e813072
unit test for header chain
0xkraken Mar 17, 2020
ba10854
Merge branch 'relaying-bnb' of https://github.com/incognitochain/inco…
0xkraken Mar 17, 2020
ef9deab
refactor code
hoang-incognito Mar 17, 2020
66b64c3
Merge branch 'relaying-bnb' of github.com:incognitochain/incognito-ch…
hoang-incognito Mar 17, 2020
d2c549e
check and build instruction when exchange rate drop down for waiting …
0xkraken Mar 17, 2020
37f6673
config param for binance chain
0xkraken Mar 17, 2020
859bb77
exchangerates: fix check token type
hoang-incognito Mar 17, 2020
c116fa4
Merge branch 'relaying-bnb' of github.com:incognitochain/incognito-ch…
hoang-incognito Mar 17, 2020
85cfd0b
init genesis header before appending new header
0xkraken Mar 18, 2020
1a66068
revert param
0xkraken Mar 18, 2020
5203073
Merge branch 'relaying-bnb' of https://github.com/incognitochain/inco…
0xkraken Mar 18, 2020
d9c69be
fix auto liquidation
hoang-incognito Mar 18, 2020
c125b65
Merge branch 'relaying-bnb' of github.com:incognitochain/incognito-ch…
hoang-incognito Mar 18, 2020
97b8300
fix liquidation custodian deposit
hoang-incognito Mar 19, 2020
25871b5
update genesis block header bnb
0xkraken Mar 19, 2020
3d14502
Merge branch 'relaying-bnb' of https://github.com/incognitochain/inco…
0xkraken Mar 19, 2020
f29314a
update param validator for devnet
0xkraken Mar 19, 2020
23c41cd
refactor code and fixbug custodian withdraw and deposit
hoang-incognito Mar 19, 2020
0e66d78
change file name
hoang-incognito Mar 19, 2020
398f8ff
Merge branch 'relaying-bnb' of github.com:incognitochain/incognito-ch…
hoang-incognito Mar 19, 2020
dd2cc35
check expired waiting porting request
0xkraken Mar 19, 2020
4bcfcc5
Merge branch 'relaying-bnb' of https://github.com/incognitochain/inco…
0xkraken Mar 19, 2020
79cd021
auto expired waiting porting request
0xkraken Mar 19, 2020
2968e1e
add liquidatedByExchangeRate into status of liquidation custodian
0xkraken Mar 19, 2020
8273ee8
fix bug get liquidation
hoang-incognito Mar 19, 2020
c65e0f2
Merge branch 'relaying-bnb' of github.com:incognitochain/incognito-ch…
hoang-incognito Mar 19, 2020
8b04a58
get amount needed
hoang-incognito Mar 20, 2020
30d3db4
fix save porting request
hoang-incognito Mar 20, 2020
6f506a3
fixbug liquidation redeem ptoken
hoang-incognito Mar 21, 2020
503f6dd
update rpc router
hoang-incognito Mar 22, 2020
c65b7e0
get liquidation auto
hoang-incognito Mar 22, 2020
615bf7d
Add btc relaying
Mar 23, 2020
48d96dd
Merge branch 'relaying-bnb' of https://github.com/incognitochain/inco…
Mar 23, 2020
64dac81
fix bug liquidation for waiting porting request
0xkraken Mar 23, 2020
79e27fa
Merge branch 'relaying-bnb' of https://github.com/incognitochain/inco…
0xkraken Mar 23, 2020
8f8b49e
fix typo
0xkraken Mar 23, 2020
0aaaa85
fix typo
0xkraken Mar 23, 2020
859958a
add more comment for lvdb/portal.go
0xkraken Mar 23, 2020
3cde11d
merge db v2
0xkraken Mar 23, 2020
198061f
refactor code accessor portal
hoang-incognito Mar 23, 2020
ea2a385
update portalutil
0xkraken Mar 23, 2020
8262287
state object for portal custodian
0xkraken Mar 24, 2020
1a9bae7
state object for portal waiting redeem requets
0xkraken Mar 24, 2020
5089a05
db: refactor db finnal exchange rates
hoang-incognito Mar 24, 2020
b1c86a3
move relaying db to rawdb v2
0xkraken Mar 24, 2020
1da2658
add todo
hoang-incognito Mar 24, 2020
5aaafdc
resolve conflicts
0xkraken Mar 24, 2020
7df1eab
resolve conflicts
0xkraken Mar 24, 2020
8010387
add interface porting request
0xkraken Mar 24, 2020
aa5c41a
remove todo
hoang-incognito Mar 24, 2020
56bed7b
fix conflict
hoang-incognito Mar 24, 2020
cccdee0
send e-r request
hoang-incognito Mar 24, 2020
7a045cc
refactor portl utils
0xkraken Mar 25, 2020
427d8b3
Resolve conflicts
0xkraken Mar 25, 2020
5427f06
update state object for custodian and waiting redeem
0xkraken Mar 25, 2020
7d6ec61
update portal utils
0xkraken Mar 25, 2020
7feaea0
add state object for portal status
0xkraken Mar 25, 2020
22a7003
refactor db: porting request
hoang-incognito Mar 25, 2020
e6d3e7a
Merge branch 'relaying-bnb' of github.com:incognitochain/incognito-ch…
hoang-incognito Mar 25, 2020
aece08c
add comment and add portal statedb
hoang-incognito Mar 25, 2020
a36f06e
add portal prefix for statedb
0xkraken Mar 25, 2020
1fc1a6d
resolve conflicts
0xkraken Mar 25, 2020
a33b936
update store db
hoang-incognito Mar 25, 2020
ee2d703
update metadata portal and portal reward
0xkraken Mar 25, 2020
acf9970
refactor beacon portal producer
0xkraken Mar 25, 2020
5152723
refactor code
hoang-incognito Mar 25, 2020
4eb760a
store portal status db v2
0xkraken Mar 25, 2020
15dc7e5
fix conflict
hoang-incognito Mar 25, 2020
a960bfb
fix conflict
hoang-incognito Mar 25, 2020
c90a2a2
store portal rewards db v2
0xkraken Mar 25, 2020
575e669
resolve conflicts
0xkraken Mar 25, 2020
e1fcc12
update beacon portal process
0xkraken Mar 25, 2020
a453401
refactor code, remove not used code
hoang-incognito Mar 25, 2020
836ae79
fix conflict
hoang-incognito Mar 25, 2020
47b193a
remove database package
hoang-incognito Mar 25, 2020
bd2d1bb
refactor code: create new object and add/remove method
hoang-incognito Mar 25, 2020
d738d02
refactor varible name
hoang-incognito Mar 25, 2020
8f3ae4b
refactor code: fix syntax code liquidation
hoang-incognito Mar 26, 2020
868d16d
refactor code: fix syntax at portaltxbuilder
hoang-incognito Mar 26, 2020
4c221dd
update portal db v2
0xkraken Mar 26, 2020
78b2e34
update beacon relaying process
0xkraken Mar 26, 2020
0e96268
refactor code: store item
hoang-incognito Mar 26, 2020
8b81997
update http relaying
0xkraken Mar 26, 2020
5c95b78
fix conflict
hoang-incognito Mar 26, 2020
727de80
Merge branch 'relaying-bnb' of github.com:incognitochain/incognito-ch…
hoang-incognito Mar 26, 2020
b7def45
refactor: change name type
hoang-incognito Mar 26, 2020
6e448cf
fix syntax code
hoang-incognito Mar 26, 2020
3cf0633
rpc get portal reward
0xkraken Mar 26, 2020
3987027
Merge branch 'relaying-bnb' of https://github.com/incognitochain/inco…
0xkraken Mar 26, 2020
59ffc76
Add processes of porting ptokens and request unlocking collaterals fo…
Mar 26, 2020
579edeb
refactor code: save db
hoang-incognito Mar 26, 2020
61262e6
Merge branch 'relaying-bnb' of github.com:incognitochain/incognito-ch…
hoang-incognito Mar 26, 2020
5eeb3f0
store waiting request
hoang-incognito Mar 27, 2020
23c8313
add deleted waiting porting requests and custodians
0xkraken Mar 27, 2020
c9e607a
store multiple items
hoang-incognito Mar 27, 2020
b6a7d39
edit syntax beacon process
hoang-incognito Mar 27, 2020
b99d5ed
save items
hoang-incognito Mar 27, 2020
4c40599
update store/get portal reward by beacon height
0xkraken Mar 27, 2020
fb64b0b
Merge branch 'relaying-bnb' of https://github.com/incognitochain/inco…
0xkraken Mar 27, 2020
c96bb1f
save porting request
hoang-incognito Mar 27, 2020
f9a9c8a
Merge branch 'relaying-bnb' of github.com:incognitochain/incognito-ch…
hoang-incognito Mar 27, 2020
47ca7d4
modified dataaccess
hoang-incognito Mar 27, 2020
775e0b9
update go.mod
0xkraken Mar 27, 2020
ba6859a
Merge branch 'relaying-bnb' of https://github.com/incognitochain/inco…
0xkraken Mar 27, 2020
fb4678a
init portal service
hoang-incognito Mar 27, 2020
d274e41
fix store portal status
hoang-incognito Mar 27, 2020
3cfaf4f
update statedb object
0xkraken Mar 27, 2020
e0c17f2
resolve conflict
0xkraken Mar 27, 2020
780ab77
get current portal state
hoang-incognito Mar 27, 2020
b7f17c1
Merge branch 'relaying-bnb' of github.com:incognitochain/incognito-ch…
hoang-incognito Mar 27, 2020
842e43f
fix panic eror
hoang-incognito Mar 27, 2020
dc1363a
update state object for custodian deposit
0xkraken Mar 28, 2020
e2514b1
fix panic error
hoang-incognito Mar 28, 2020
7f4d3d1
Merge branch 'relaying-bnb' of github.com:incognitochain/incognito-ch…
hoang-incognito Mar 28, 2020
db68275
fixbug: porting request
hoang-incognito Mar 28, 2020
909dc85
update key of waiting redeem request
0xkraken Mar 28, 2020
c3523d6
remove deleted waiting list
0xkraken Mar 28, 2020
1c4dabb
replace key for waiting porting request
0xkraken Mar 28, 2020
b0e175a
replace key for final exchange rate
0xkraken Mar 28, 2020
2951a54
fix bug db v2
0xkraken Mar 28, 2020
28a818f
update locked amount collateral
hoang-incognito Mar 28, 2020
2d3c8b4
Merge branch 'relaying-bnb' of github.com:incognitochain/incognito-ch…
hoang-incognito Mar 28, 2020
cc37311
refactor code: get all item
hoang-incognito Mar 28, 2020
2c58707
get custodian withdraw
hoang-incognito Mar 29, 2020
58a7ac3
remove comment: liquidation exchange rates
hoang-incognito Mar 29, 2020
cf542b0
Add tests for btc relaying processes
Mar 29, 2020
64d8b60
Resolve conflicts
Mar 30, 2020
6ffd9ea
revert code at common/log
hoang-incognito Mar 30, 2020
c11af37
Merge branch 'relaying-bnb' of https://github.com/incognitochain/inco…
Mar 30, 2020
aba1d17
rpc get latest bnb header block height
0xkraken Mar 30, 2020
d0516b8
use type.Block instead of bnbHeader
0xkraken Mar 30, 2020
397bf97
Update btc logics to new db
Mar 30, 2020
51969a6
update genesis header block
0xkraken Mar 30, 2020
99da942
Set genesis block for btc relaying chain
Mar 31, 2020
c20cfe0
Create relaying btc rpcs
Mar 31, 2020
5a6edfd
Resolve conflicts
Mar 31, 2020
32cb690
Merge branch 'dev/master-db-v2' into relaying-bnb
0xkraken Mar 31, 2020
79259d0
update bnb relaying
0xkraken Apr 1, 2020
91271b4
Update btc chain initialization to server starting
Apr 3, 2020
3a803e0
Merge branch 'relaying-bnb' of https://github.com/incognitochain/inco…
Apr 3, 2020
f1f41ff
remove database
hoang-incognito Apr 3, 2020
0b3ab4a
Merge branch 'relaying-bnb' of github.com:incognitochain/incognito-ch…
hoang-incognito Apr 3, 2020
4e56652
refactor unitest
hoang-incognito Apr 5, 2020
bd1a7b7
porting request: unittest instruction
hoang-incognito Apr 5, 2020
a1fed58
test porting request
hoang-incognito Apr 5, 2020
ddb150c
remove unneccessary logs
0xkraken Apr 5, 2020
633869a
Merge branch 'relaying-bnb' of https://github.com/incognitochain/inco…
0xkraken Apr 5, 2020
5d53b31
create scenerio test case
hoang-incognito Apr 5, 2020
ab658de
Merge branch 'relaying-bnb' of github.com:incognitochain/incognito-ch…
hoang-incognito Apr 5, 2020
050d6f2
test pass
hoang-incognito Apr 5, 2020
59d43e2
Add tests for creating btc tx with memo
Apr 6, 2020
b8b1c13
Merge branch 'relaying-bnb' of https://github.com/incognitochain/inco…
Apr 6, 2020
6f7f98d
hard code genesis bnb block header
0xkraken Apr 6, 2020
dd660d1
update portal producer test
0xkraken Apr 6, 2020
fb8ce8f
revert code
hoang-incognito Apr 7, 2020
3080810
Merge branch 'relaying-bnb' of github.com:incognitochain/incognito-ch…
hoang-incognito Apr 7, 2020
92cb545
remove database service
0xkraken Apr 7, 2020
782553f
Merge branch 'relaying-bnb' of https://github.com/incognitochain/inco…
0xkraken Apr 7, 2020
7380f41
validation len parammeter
hoang-incognito Apr 7, 2020
880e2ec
Merge branch 'relaying-bnb' of github.com:incognitochain/incognito-ch…
hoang-incognito Apr 7, 2020
283a0d6
unit tests for custodian deposit
0xkraken Apr 7, 2020
40fdc4d
unit test for redeem request
0xkraken Apr 7, 2020
c4e8756
revert code
0xkraken Apr 7, 2020
f8c6de8
fixbug random custodian
hoang-incognito Apr 8, 2020
df0e0a0
merge conflict
hoang-incognito Apr 8, 2020
ddbc359
reopen comment
hoang-incognito Apr 8, 2020
2bcec6c
update timeout portal to duration time
0xkraken Apr 8, 2020
dbf9376
Merge branch 'relaying-bnb' of https://github.com/incognitochain/inco…
0xkraken Apr 8, 2020
20e29c3
revert go.sum
0xkraken Apr 8, 2020
21ca1dd
remove lvdb/portal.go
0xkraken Apr 8, 2020
bcbe3b2
add test case: check waiting porting request
hoang-incognito Apr 8, 2020
ca60154
Merge branch 'relaying-bnb' of github.com:incognitochain/incognito-ch…
hoang-incognito Apr 8, 2020
215845d
revert pde contribution response
0xkraken Apr 8, 2020
6b7e7e7
Merge branch 'relaying-bnb' of https://github.com/incognitochain/inco…
0xkraken Apr 8, 2020
4191bde
validate bnb proof with minimum confirmation blocks
0xkraken Apr 8, 2020
b351030
revert go.sum
0xkraken Apr 8, 2020
09863cb
use big int to calculate custodian rewards
0xkraken Apr 9, 2020
89ed4fd
add testing liquidation
hoang-incognito Apr 9, 2020
1ca2da4
Merge branch 'relaying-bnb' of github.com:incognitochain/incognito-ch…
hoang-incognito Apr 9, 2020
f9fb45a
retest liquidation
hoang-incognito Apr 10, 2020
ca984ae
split custodian reward from DAO funds
0xkraken Apr 11, 2020
2f9d2a7
handle get reward amount and withdraw reward from DAO account
0xkraken Apr 11, 2020
0eed115
Merge branch 'relaying-bnb' of https://github.com/incognitochain/inco…
0xkraken Apr 11, 2020
4b2f820
Add tests to create txs to bitcoin chain
Apr 14, 2020
2fb55c5
Merge branch 'relaying-bnb' of https://github.com/incognitochain/inco…
Apr 14, 2020
58825c2
revert custodian rewards
0xkraken Apr 14, 2020
b40c426
Merge branch 'relaying-bnb' of https://github.com/incognitochain/inco…
0xkraken Apr 14, 2020
8df8ffd
update custodian rewards
0xkraken Apr 14, 2020
cf7ad00
replace float64 to big int
0xkraken Apr 15, 2020
be959d8
update blockchain constants
0xkraken Apr 15, 2020
2a665e6
remove unnecessary returning error in functions
0xkraken Apr 15, 2020
7f34ce8
add more logs
0xkraken Apr 15, 2020
41e9444
resolve conflict
0xkraken Apr 16, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions .dockerignore
@@ -0,0 +1,2 @@
vendor
data
2 changes: 2 additions & 0 deletions blockchain/beaconpdeprocess.go
Expand Up @@ -103,9 +103,11 @@ func (blockchain *BlockChain) processPDEContributionV2(pdexStateDB *statedb.Stat
Amount: waitingContribution.ContributedAmount,
TxReqID: waitingContribution.TxReqID,
}

contribStatus := metadata.PDEContributionStatus{
Status: byte(common.PDEContributionWaitingStatus),
}

contribStatusBytes, _ := json.Marshal(contribStatus)
err = statedb.TrackPDEContributionStatus(
pdexStateDB,
Expand Down
7 changes: 4 additions & 3 deletions blockchain/beaconpdeprocess_test.go
Expand Up @@ -6,6 +6,7 @@ import (
"encoding/json"
"fmt"
"github.com/incognitochain/incognito-chain/dataaccessobject/rawdbv2"
"github.com/incognitochain/incognito-chain/dataaccessobject/statedb"
"strconv"
"testing"

Expand Down Expand Up @@ -108,7 +109,7 @@ func (suite *PDEProcessSuite) TestPDEContributionOnUnexistedWaitingUniqID() {
)
beaconHeight := uint64(1001)
bc := &BlockChain{}
err := bc.processPDEContributionV2(beaconHeight-1, contribInsts[0], suite.currentPDEState)
err := bc.processPDEContributionV2(&statedb.StateDB{}, beaconHeight-1, contribInsts[0], suite.currentPDEState)
suite.Equal(err, nil)
waitingContribKey := string(rawdbv2.BuildWaitingPDEContributionKey(
beaconHeight-1,
Expand Down Expand Up @@ -150,7 +151,7 @@ func (suite *PDEProcessSuite) TestPDEContributionOnUnexistedPairForExistedWaitin
contribToken2IDStr,
)
bc := &BlockChain{}
err := bc.processPDEContributionV2(beaconHeight-1, contribInsts[0], suite.currentPDEState)
err := bc.processPDEContributionV2(&statedb.StateDB{}, beaconHeight-1, contribInsts[0], suite.currentPDEState)
suite.Equal(err, nil)
_, found := currentPDEState.WaitingPDEContributions[existedWaitingContribKey]
suite.Equal(found, false)
Expand Down Expand Up @@ -261,7 +262,7 @@ func (suite *PDEProcessSuite) TestPDEContributionOnExistedPairForExistedWaitingU
contribToken2IDStr,
)
bc := &BlockChain{}
err := bc.processPDEContributionV2(beaconHeight-1, contribInsts[0], suite.currentPDEState)
err := bc.processPDEContributionV2(&statedb.StateDB{}, beaconHeight-1, contribInsts[0], suite.currentPDEState)
suite.Equal(err, nil)
newWaitingPDEContributions := suite.currentPDEState.WaitingPDEContributions
suite.Equal(len(newWaitingPDEContributions), 1)
Expand Down