diff options
Diffstat (limited to 'les/handler_test.go')
-rw-r--r-- | les/handler_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/les/handler_test.go b/les/handler_test.go index 43be7f41b..a76848279 100644 --- a/les/handler_test.go +++ b/les/handler_test.go @@ -508,8 +508,9 @@ func TestTransactionStatusLes2(t *testing.T) { test := func(tx *types.Transaction, send bool, expStatus txStatus) { reqID++ if send { - cost := peer.GetRequestCost(SendTxV2Msg, 1) - sendRequest(peer.app, SendTxV2Msg, reqID, cost, types.Transactions{tx}) + enc, _ := rlp.EncodeToBytes(types.Transactions{tx}) + cost := peer.GetTxRelayCost(1, len(enc)) + sendRequest(peer.app, SendTxV2Msg, reqID, cost, rlp.RawValue(enc)) } else { cost := peer.GetRequestCost(GetTxStatusMsg, 1) sendRequest(peer.app, GetTxStatusMsg, reqID, cost, []common.Hash{tx.Hash()}) |