@@ -30,9 +30,8 @@ import (
30
30
31
31
type (
32
32
notaryInfo struct {
33
- txValidTime uint32 // minimum amount of blocks when mainTx will be valid
34
- roundTime uint32 // extra amount of blocks to synchronize sidechain height diff of inner ring nodes
35
- fallbackTime uint32 // mainTx's ValidUntilBlock - fallbackTime + 1 is when fallbackTx is sent
33
+ txValidTime uint32 // minimum amount of blocks when mainTx will be valid
34
+ roundTime uint32 // extra amount of blocks to synchronize sidechain height diff of inner ring nodes
36
35
37
36
alphabetSource AlphabetKeys // source of alphabet node keys to prepare witness
38
37
43
42
notaryCfg struct {
44
43
proxy util.Uint160
45
44
46
- txValidTime , roundTime , fallbackTime uint32
45
+ txValidTime , roundTime uint32
47
46
48
47
alphabetSource AlphabetKeys
49
48
}
53
52
)
54
53
55
54
const (
56
- defaultNotaryValidTime = 50
57
- defaultNotaryRoundTime = 100
58
- defaultNotaryFallbackTime = 40
55
+ defaultNotaryValidTime = 50
56
+ defaultNotaryRoundTime = 100
59
57
60
58
notaryBalanceOfMethod = "balanceOf"
61
59
notaryExpirationOfMethod = "expirationOf"
@@ -71,7 +69,6 @@ func defaultNotaryConfig(c *Client) *notaryCfg {
71
69
return & notaryCfg {
72
70
txValidTime : defaultNotaryValidTime ,
73
71
roundTime : defaultNotaryRoundTime ,
74
- fallbackTime : defaultNotaryFallbackTime ,
75
72
alphabetSource : c .Committee ,
76
73
}
77
74
}
@@ -106,7 +103,6 @@ func (c *Client) EnableNotarySupport(opts ...NotaryOption) error {
106
103
proxy : cfg .proxy ,
107
104
txValidTime : cfg .txValidTime ,
108
105
roundTime : cfg .roundTime ,
109
- fallbackTime : cfg .fallbackTime ,
110
106
alphabetSource : cfg .alphabetSource ,
111
107
notary : notary .Hash ,
112
108
}
@@ -674,15 +670,6 @@ func WithRoundTime(t uint32) NotaryOption {
674
670
}
675
671
}
676
672
677
- // WithFallbackTime returns a notary support option for client
678
- // that specifies amount of blocks before fallbackTx will be sent.
679
- // Should be less than TxValidTime.
680
- func WithFallbackTime (t uint32 ) NotaryOption {
681
- return func (c * notaryCfg ) {
682
- c .fallbackTime = t
683
- }
684
- }
685
-
686
673
// WithAlphabetSource returns a notary support option for client
687
674
// that specifies function to return list of alphabet node keys.
688
675
// By default notary subsystem uses committee as a source. This is
0 commit comments