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 {
3636 airdropperLock sync.Mutex
3737 airdropper * common.TimelockAccounts
3838
39- // Not configured, since micropeayments require new implementation and are disabled
4039 feeCollector * common.Account
4140
4241 // todo: distributed locks
@@ -55,6 +54,8 @@ func NewTransactionServer(
5554 noncePool * transaction.LocalNoncePool ,
5655 configProvider ConfigProvider ,
5756) (transactionpb.TransactionServer , error ) {
57+ var err error
58+
5859 ctx := context .Background ()
5960
6061 conf := configProvider ()
@@ -85,6 +86,11 @@ func NewTransactionServer(
8586 giftCardLocks : sync_util .NewStripedLock (stripedLockParallelization ),
8687 }
8788
89+ s .feeCollector , err = common .NewAccountFromPublicKeyString (s .conf .feeCollectorTokenPublicKey .Get (ctx ))
90+ if err != nil {
91+ return nil , err
92+ }
93+
8894 airdropper := s .conf .airdropperOwnerPublicKey .Get (ctx )
8995 if len (airdropper ) > 0 && airdropper != defaultAirdropperOwnerPublicKey {
9096 err := s .loadAirdropper (ctx )
You can’t perform that action at this time.
0 commit comments