From c84fe1360e66f0a7527ae2b227b0ea97eb4487f4 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Tue, 20 Apr 2021 18:07:44 +0300 Subject: [PATCH] [#486] morph/client: Remove unused fields in notary With neo-go v0.94.1 verification fee can be calculated precisely and alphabet keys are fetched from committee instead of network map contract. Signed-off-by: Alex Vanin --- pkg/morph/client/notary.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pkg/morph/client/notary.go b/pkg/morph/client/notary.go index 6d802f36..ea551890 100644 --- a/pkg/morph/client/notary.go +++ b/pkg/morph/client/notary.go @@ -19,17 +19,12 @@ import ( type ( notary struct { - // extra fee to check witness of proxy contract - // neo-go does not have an option to calculate it exactly right now - extraVerifyFee int64 - txValidTime uint32 // minimum amount of blocks when mainTx will be valid roundTime uint32 // extra amount of blocks to synchronize sidechain height diff of inner ring nodes fallbackTime uint32 // amount of blocks before fallbackTx will be sent notary util.Uint160 proxy util.Uint160 - netmap util.Uint160 } notaryCfg struct { @@ -79,7 +74,6 @@ func (c *Client) EnableNotarySupport(proxy, netmap util.Uint160, opts ...NotaryO c.notary = ¬ary{ notary: notaryContract, proxy: proxy, - netmap: netmap, txValidTime: cfg.txValidTime, roundTime: cfg.roundTime, fallbackTime: cfg.fallbackTime,