-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prepare remove tx fee handler #164
Conversation
# Conflicts: # process/elasticProcessor.go # process/logsevents/informativeLogsProcessor.go # process/transactions/scrsDataToTransactions.go # process/transactions/serialize.go
# Conflicts: # integrationtests/esdtTransfer_test.go # integrationtests/nftTransferCrossWithScCall_test.go # integrationtests/relayedTx_test.go # integrationtests/scCallIntraShard_test.go # integrationtests/transactions_test.go # process/block/blockProcessor_test.go # process/elasticProcessor_test.go # process/transactions/transactionDBBuilder.go # workItems/workItemBlock_test.go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please run Inspect Code from your IDE. You will find some grammar issues, alongside with unsorted imports
SerializeReceiptsCalled func(recs []*data.Receipt, buffSlice *data.BufferSlice, index string) error | ||
SerializeScResultsCalled func(scrs []*data.ScResult, buffSlice *data.BufferSlice, index string) error | ||
} | ||
|
||
func (tps *DBTransactionProcessorStub) SerializeTransactionWithRefund(_ map[string]*data.Transaction, _ map[string]*data.RefundData, _ *data.BufferSlice, _ string) error { | ||
func (tps *DBTransactionProcessorStub) SerializeTransactionsFeeData(_ map[string]*data.FeeData, _ *data.BufferSlice, _ string) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
) | ||
|
||
// SerializeScResults will serialize the provided smart contract results in a way that Elastic Search expects a bulk request | ||
// SerializeScResults will serialize the provided smart contract results in a way that ElasticSearch expects a bulk request |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Elasticsearch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -31,7 +28,7 @@ func (tdp *txsDatabaseProcessor) SerializeScResults(scResults []*data.ScResult, | |||
return nil | |||
} | |||
|
|||
// SerializeReceipts will serialize the receipts in a way that Elastic Search expects a bulk request | |||
// SerializeReceipts will serialize the receipts in a way that ElasticSearch expects a bulk request |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Elasticsearch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -132,9 +130,6 @@ func checkDataIndexerParams(arguments *ArgsIndexerFactory) error { | |||
if check.IfNil(arguments.Hasher) { | |||
return indexer.ErrNilHasher | |||
} | |||
if check.IfNil(arguments.TransactionFeeCalculator) { | |||
return indexer.ErrNilTransactionFeeCalculator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this err from errors.go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
@@ -14,7 +14,7 @@ import ( | |||
"github.com/ElrondNetwork/elrond-go-core/core/check" | |||
coreData "github.com/ElrondNetwork/elrond-go-core/data" | |||
"github.com/ElrondNetwork/elrond-go-core/data/block" | |||
"github.com/ElrondNetwork/elrond-go-core/data/indexer" | |||
"github.com/ElrondNetwork/elrond-go-core/data/outport" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
imports not sorted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
elrond-go-core
TransactionsFeeHandler