Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c7be7cf4fd |
@@ -48,6 +48,7 @@ type TxSignal struct {
|
|||||||
CULimit uint32 `json:"cu_limit"`
|
CULimit uint32 `json:"cu_limit"`
|
||||||
SWQoSAgent string `json:"swqos_agent"`
|
SWQoSAgent string `json:"swqos_agent"`
|
||||||
SWQoSTips decimal.Decimal `json:"swqos_tips"`
|
SWQoSTips decimal.Decimal `json:"swqos_tips"`
|
||||||
|
TableCnt int `json:"table_cnt"`
|
||||||
|
|
||||||
ExactSOL bool `json:"exact_in"`
|
ExactSOL bool `json:"exact_in"`
|
||||||
|
|
||||||
|
|||||||
@@ -182,7 +182,8 @@ func ParseTransactionForEntries(ctx context.Context, slot uint64, entriesReader
|
|||||||
}
|
}
|
||||||
|
|
||||||
func ParseTransactionWithHandler(ctx context.Context, versioned VersionedTransaction, loader *AddressTables, parsed chan<- TxSignal, handlers map[solana.PublicKey]Handler) {
|
func ParseTransactionWithHandler(ctx context.Context, versioned VersionedTransaction, loader *AddressTables, parsed chan<- TxSignal, handlers map[solana.PublicKey]Handler) {
|
||||||
if loader != nil && len(versioned.AddressTableLookups) > 0 {
|
tableCnt := len(versioned.AddressTableLookups)
|
||||||
|
if loader != nil && tableCnt > 0 {
|
||||||
lookupTableOk := true
|
lookupTableOk := true
|
||||||
for _, lookups := range versioned.AddressTableLookups {
|
for _, lookups := range versioned.AddressTableLookups {
|
||||||
lookupTableOk = loader.FillToTx(&versioned, lookups.AccountKey, lookups.WritableIndexes)
|
lookupTableOk = loader.FillToTx(&versioned, lookups.AccountKey, lookups.WritableIndexes)
|
||||||
@@ -266,6 +267,7 @@ func ParseTransactionWithHandler(ctx context.Context, versioned VersionedTransac
|
|||||||
one.CULimit = cuLimit
|
one.CULimit = cuLimit
|
||||||
one.SWQoSAgent = swqosAgent
|
one.SWQoSAgent = swqosAgent
|
||||||
one.SWQoSTips = swqosTips
|
one.SWQoSTips = swqosTips
|
||||||
|
one.TableCnt = tableCnt
|
||||||
select {
|
select {
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user