Fantom-foundation/go-lachesis

View on GitHub

Showing 291 of 829 total issues

Function NewBlock has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

func NewBlock(index idx.Block, time Timestamp, atropos hash.Event, prevHash hash.Event, events hash.Events) *Block {
Severity: Minor
Found in inter/block.go - About 35 mins to fix

    Method ContractFilterer.WatchPartialWithdrawnByRequest has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    func (_Contract *ContractFilterer) WatchPartialWithdrawnByRequest(opts *bind.WatchOpts, sink chan<- *ContractPartialWithdrawnByRequest, auth []common.Address, receiver []common.Address, stakerID []*big.Int) (event.Subscription, error) {
    Severity: Minor
    Found in gossip/sfc110/contract.go - About 35 mins to fix

      Function DoEstimateGas has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      func DoEstimateGas(ctx context.Context, b Backend, args CallArgs, blockNrOrHash rpc.BlockNumberOrHash, gasCap uint64) (hexutil.Uint64, error) {
      Severity: Minor
      Found in ethapi/api.go - About 35 mins to fix

        Method ContractCaller.CalcDelegationEpochReward has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        func (_Contract *ContractCaller) CalcDelegationEpochReward(opts *bind.CallOpts, stakerID *big.Int, epoch *big.Int, delegationAmount *big.Int, commission *big.Int) (*big.Int, error) {
        Severity: Minor
        Found in gossip/sfc110/contract.go - About 35 mins to fix

          Method PublicDebugAPI.BlocksTTF has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          func (s *PublicDebugAPI) BlocksTTF(ctx context.Context, untilBlock rpc.BlockNumber, maxBlocks hexutil.Uint64, mode string, verbosity hexutil.Uint64) (map[string]interface{}, error) {
          Severity: Minor
          Found in ethapi/dag_api.go - About 35 mins to fix

            Method ContractFilterer.WatchUpdatedStakerSfcAddress has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            func (_Contract *ContractFilterer) WatchUpdatedStakerSfcAddress(opts *bind.WatchOpts, sink chan<- *ContractUpdatedStakerSfcAddress, stakerID []*big.Int, oldSfcAddress []common.Address, newSfcAddress []common.Address) (event.Subscription, error) {
            Severity: Minor
            Found in gossip/sfc110/contract.go - About 35 mins to fix

              Method ContractFilterer.WatchCreatedWithdrawRequest has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              func (_Contract *ContractFilterer) WatchCreatedWithdrawRequest(opts *bind.WatchOpts, sink chan<- *ContractCreatedWithdrawRequest, auth []common.Address, receiver []common.Address, stakerID []*big.Int) (event.Subscription, error) {
              Severity: Minor
              Found in gossip/sfc204/contract.go - About 35 mins to fix

                Function newPeer has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                func newPeer(peer Peer, myEpoch idx.Epoch, fetcher *fetcher.Fetcher, onlyNotConnected onlyNotConnectedFn, dropPeer dropPeerFn) *PeerPacksDownloader {
                Severity: Minor
                Found in gossip/packsdownloader/peer_downloader.go - About 35 mins to fix

                  Method ContractFilterer.WatchCreatedWithdrawRequest has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  func (_Contract *ContractFilterer) WatchCreatedWithdrawRequest(opts *bind.WatchOpts, sink chan<- *ContractCreatedWithdrawRequest, auth []common.Address, receiver []common.Address, stakerID []*big.Int) (event.Subscription, error) {
                  Severity: Minor
                  Found in gossip/sfc202/contract.go - About 35 mins to fix

                    Method ContractFilterer.WatchUpdatedStakerSfcAddress has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    func (_Contract *ContractFilterer) WatchUpdatedStakerSfcAddress(opts *bind.WatchOpts, sink chan<- *ContractUpdatedStakerSfcAddress, stakerID []*big.Int, oldSfcAddress []common.Address, newSfcAddress []common.Address) (event.Subscription, error) {
                    Severity: Minor
                    Found in gossip/sfc202/contract.go - About 35 mins to fix

                      Method ContractFilterer.WatchPartialWithdrawnByRequest has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                      func (_Contract *ContractFilterer) WatchPartialWithdrawnByRequest(opts *bind.WatchOpts, sink chan<- *ContractPartialWithdrawnByRequest, auth []common.Address, receiver []common.Address, stakerID []*big.Int) (event.Subscription, error) {
                      Severity: Minor
                      Found in gossip/sfc202/contract.go - About 35 mins to fix

                        Function ReadGasPowerContext has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                        func ReadGasPowerContext(s *Store, a *app.Store, validators *pos.Validators, epoch idx.Epoch, cfg *lachesis.EconomyConfig) *gaspowercheck.ValidationContext {
                        Severity: Minor
                        Found in gossip/checker_helpers.go - About 35 mins to fix

                          Method ContractCaller.CalcDelegationCompoundRewards has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                          func (_Contract *ContractCaller) CalcDelegationCompoundRewards(opts *bind.CallOpts, delegator common.Address, toStakerID *big.Int, _fromEpoch *big.Int, maxEpochs *big.Int) (*big.Int, *big.Int, *big.Int, error) {
                          Severity: Minor
                          Found in gossip/sfc202/contract.go - About 35 mins to fix

                            Method Service.updateUsersPOI has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                            func (s *Service) updateUsersPOI(block *inter.Block, evmBlock *evmcore.EvmBlock, receipts types.Receipts, totalFee *big.Int, sealEpoch bool) {
                            Severity: Minor
                            Found in gossip/poi.go - About 35 mins to fix

                              Function makeCheckers has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                              func makeCheckers(net *lachesis.Config, heavyCheckReader *HeavyCheckReader, gasPowerCheckReader *GasPowerCheckReader, engine Consensus, store *Store) *eventcheck.Checkers {
                              Severity: Minor
                              Found in gossip/service.go - About 35 mins to fix

                                Method ContractFilterer.WatchUpdatedDelegation has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                func (_Contract *ContractFilterer) WatchUpdatedDelegation(opts *bind.WatchOpts, sink chan<- *ContractUpdatedDelegation, delegator []common.Address, oldStakerID []*big.Int, newStakerID []*big.Int) (event.Subscription, error) {
                                Severity: Minor
                                Found in gossip/sfc202/contract.go - About 35 mins to fix

                                  Method ContractCaller.CalcDelegationRewards has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                  func (_Contract *ContractCaller) CalcDelegationRewards(opts *bind.CallOpts, delegator common.Address, toStakerID *big.Int, _fromEpoch *big.Int, maxEpochs *big.Int) (*big.Int, *big.Int, *big.Int, error) {
                                  Severity: Minor
                                  Found in gossip/sfc204/contract.go - About 35 mins to fix

                                    Method ContractFilterer.WatchUpdatedDelegation has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                    func (_Contract *ContractFilterer) WatchUpdatedDelegation(opts *bind.WatchOpts, sink chan<- *ContractUpdatedDelegation, delegator []common.Address, oldStakerID []*big.Int, newStakerID []*big.Int) (event.Subscription, error) {
                                    Severity: Minor
                                    Found in gossip/sfc204/contract.go - About 35 mins to fix

                                      Method ContractCaller.CalcDelegationCompoundRewards has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                      func (_Contract *ContractCaller) CalcDelegationCompoundRewards(opts *bind.CallOpts, delegator common.Address, toStakerID *big.Int, _fromEpoch *big.Int, maxEpochs *big.Int) (*big.Int, *big.Int, *big.Int, error) {
                                      Severity: Minor
                                      Found in gossip/sfc204/contract.go - About 35 mins to fix

                                        Method PeerPacksDownloader.NotifyPack has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                        func (d *PeerPacksDownloader) NotifyPack(epoch idx.Epoch, index idx.Pack, ids hash.Events, time time.Time, fetchEvents fetcher.EventsRequesterFn) error {
                                        Severity: Minor
                                        Found in gossip/packsdownloader/peer_downloader.go - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language