Conversation
silaslenihan
left a comment
There was a problem hiding this comment.
Assuming we are killing write target because products will jump directly to mainline CRE
| if err != nil { | ||
| return nil, fmt.Errorf("invalid transaction payload: %w", err) | ||
| } | ||
| // remove dummy signatures |
There was a problem hiding this comment.
nit: could you maybe just add a little more on where these dummy signatures come from?
| txBytes := obj.GetBinary() | ||
|
|
||
| txJSON, jerr := json.Marshal(obj) | ||
| txJSON, _ := json.Marshal(obj) |
| Config() config.Config | ||
| } | ||
|
|
||
| func New(chain Chain, reader client.Reader, txm Txm, chainInfo commontypes.ChainInfo, lggr logger.Logger) (capabilities.ExecutableCapability, error) { |
There was a problem hiding this comment.
Are we sure that WriteTarget is not used?
| } | ||
| if c.cfg.Workflow.IsEnabled() { | ||
| c.lggr.Debug("Starting LogPoller") | ||
| startAll = append(startAll, c.lp) |
There was a problem hiding this comment.
Hm, I wonder how CCIP works without starting the LP
There was a problem hiding this comment.
They spin up logPoller during ChainReader creation
| } | ||
|
|
||
| return &commonsol.SubmitTransactionReply{Status: txStatus, Signature: commonsol.Signature(signature), IdempotencyKey: transactionID}, nil | ||
| return &commonsol.SubmitTransactionReply{Status: txStatus, IdempotencyKey: transactionID}, nil |
There was a problem hiding this comment.
Isn't it a breaking change that we no longer return the transaction signature?
Are we sure that noone else uses this method?
There was a problem hiding this comment.
- The only consumer of SolanaService currently is solana capability, so noone uses this method
- TxManager().GetTransactionSig returns only signatures for pending transactions, here call always returns an error since at this point transaction is finalized
- Solana capability doesn't rely on signature from txm and instead retreives signatures from Logs
However, having signature in reply is potentially missleading so I would either alter GetTransactionSig to support returning signatures for finalized tx (with some cleanup interval) or removed Signature from response. Gonna do this in a follow up PR
|


supports:
Contracts are carried out in a separate go module in order to improve artifacts resolution logic in core