File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
pkg/code/server/transaction Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ type transactionServer struct {
36
36
airdropperLock sync.Mutex
37
37
airdropper * common.TimelockAccounts
38
38
39
- // Not configured, since micropeayments require new implementation and are disabled
40
39
feeCollector * common.Account
41
40
42
41
// todo: distributed locks
@@ -55,6 +54,8 @@ func NewTransactionServer(
55
54
noncePool * transaction.LocalNoncePool ,
56
55
configProvider ConfigProvider ,
57
56
) (transactionpb.TransactionServer , error ) {
57
+ var err error
58
+
58
59
ctx := context .Background ()
59
60
60
61
conf := configProvider ()
@@ -85,6 +86,11 @@ func NewTransactionServer(
85
86
giftCardLocks : sync_util .NewStripedLock (stripedLockParallelization ),
86
87
}
87
88
89
+ s .feeCollector , err = common .NewAccountFromPublicKeyString (s .conf .feeCollectorTokenPublicKey .Get (ctx ))
90
+ if err != nil {
91
+ return nil , err
92
+ }
93
+
88
94
airdropper := s .conf .airdropperOwnerPublicKey .Get (ctx )
89
95
if len (airdropper ) > 0 && airdropper != defaultAirdropperOwnerPublicKey {
90
96
err := s .loadAirdropper (ctx )
You can’t perform that action at this time.
0 commit comments