Skip to content

Commit b34a042

Browse files
committed
*: update 7-nodes privnet configuration
Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
1 parent 3bcb25d commit b34a042

File tree

4 files changed

+570
-39
lines changed

4 files changed

+570
-39
lines changed

consensus/dbft/dbft.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1627,7 +1627,7 @@ func (c *DBFT) getValidators(blockNum *uint64, state *state.StateDB, header *typ
16271627
gas := hexutil.Uint64(50_000_000) // more than enough for validators call processing.
16281628
args := ethapi.TransactionArgs{
16291629
Gas: &gas,
1630-
To: &systemcontracts.GovernanceHash,
1630+
To: &systemcontracts.GovernanceProxyHash,
16311631
Data: &msgData,
16321632
}
16331633

core/state_processor.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ func ProcessBeaconBlockRoot(beaconRoot common.Hash, vmenv *vm.EVM, statedb *stat
199199

200200
// ProcessOnPersist applies a system call to the governance contract.
201201
func ProcessOnPersist(vmenv *vm.EVM, statedb *state.StateDB) error {
202-
data, err := systemcontracts.GovernanceABI.Pack("postPersist") // TODO: replace the name
202+
data, err := systemcontracts.GovernanceABI.Pack("onPersist") // TODO: replace the name
203203
if err != nil {
204204
return fmt.Errorf("filed to pack onPersist call: %w", err)
205205
}
@@ -209,11 +209,11 @@ func ProcessOnPersist(vmenv *vm.EVM, statedb *state.StateDB) error {
209209
GasPrice: common.Big0,
210210
GasFeeCap: common.Big0,
211211
GasTipCap: common.Big0,
212-
To: &systemcontracts.GovernanceHash,
212+
To: &systemcontracts.GovernanceProxyHash,
213213
Data: data,
214214
}
215215
vmenv.Reset(NewEVMTxContext(msg), statedb)
216-
statedb.AddAddressToAccessList(systemcontracts.GovernanceHash)
216+
statedb.AddAddressToAccessList(systemcontracts.GovernanceProxyHash)
217217
_, _, err = vmenv.Call(vm.AccountRef(msg.From), *msg.To, msg.Data, 30_000_000, common.U2560)
218218
if err != nil {
219219
return fmt.Errorf("onPersist call failed: %w", err)

0 commit comments

Comments
 (0)