les, light: implement ODR transaction lookup by hash (#19069)
* les, light: implement ODR transaction lookup by hash * les: delete useless file * internal/ethapi: always use backend to find transaction * les, eth, internal/ethapi: renamed GetCanonicalTransaction to GetTransaction * light: add canonical header verification to GetTransaction
This commit is contained in:
		
				
					committed by
					
						 Péter Szilágyi
						Péter Szilágyi
					
				
			
			
				
	
			
			
			
						parent
						
							f4fb1a1801
						
					
				
				
					commit
					40cdcf8c47
				
			| @@ -62,6 +62,7 @@ type Backend interface { | ||||
|  | ||||
| 	// TxPool API | ||||
| 	SendTx(ctx context.Context, signedTx *types.Transaction) error | ||||
| 	GetTransaction(ctx context.Context, txHash common.Hash) (*types.Transaction, common.Hash, uint64, uint64, error) | ||||
| 	GetPoolTransactions() (types.Transactions, error) | ||||
| 	GetPoolTransaction(txHash common.Hash) *types.Transaction | ||||
| 	GetPoolNonce(ctx context.Context, addr common.Address) (uint64, error) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user