forked from TrueCloudLab/frostfs-node
[#1689] morph/client: Remove notary hash field from notaryInfo
Notary contract hash is constant. Change-Id: I7935580acbced5c9d567875ea75daa57cc259a3c Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
3bb1fb744a
commit
0a9d139e20
1 changed files with 2 additions and 4 deletions
|
@ -38,8 +38,7 @@ type (
|
||||||
|
|
||||||
alphabetSource AlphabetKeys // source of alphabet node keys to prepare witness
|
alphabetSource AlphabetKeys // source of alphabet node keys to prepare witness
|
||||||
|
|
||||||
notary util.Uint160
|
proxy util.Uint160
|
||||||
proxy util.Uint160
|
|
||||||
}
|
}
|
||||||
|
|
||||||
notaryCfg struct {
|
notaryCfg struct {
|
||||||
|
@ -102,7 +101,6 @@ func (c *Client) EnableNotarySupport(opts ...NotaryOption) error {
|
||||||
txValidTime: cfg.txValidTime,
|
txValidTime: cfg.txValidTime,
|
||||||
roundTime: cfg.roundTime,
|
roundTime: cfg.roundTime,
|
||||||
alphabetSource: cfg.alphabetSource,
|
alphabetSource: cfg.alphabetSource,
|
||||||
notary: notary.Hash,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
c.notary = notaryCfg
|
c.notary = notaryCfg
|
||||||
|
@ -188,7 +186,7 @@ func (c *Client) DepositEndlessNotary(ctx context.Context, amount fixedn.Fixed8)
|
||||||
func (c *Client) depositNotary(ctx context.Context, amount fixedn.Fixed8, till int64) (util.Uint256, uint32, error) {
|
func (c *Client) depositNotary(ctx context.Context, amount fixedn.Fixed8, till int64) (util.Uint256, uint32, error) {
|
||||||
txHash, vub, err := c.gasToken.Transfer(
|
txHash, vub, err := c.gasToken.Transfer(
|
||||||
c.accAddr,
|
c.accAddr,
|
||||||
c.notary.notary,
|
notary.Hash,
|
||||||
big.NewInt(int64(amount)),
|
big.NewInt(int64(amount)),
|
||||||
[]any{c.acc.PrivateKey().GetScriptHash(), till})
|
[]any{c.acc.PrivateKey().GetScriptHash(), till})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Reference in a new issue