File tree 1 file changed +14
-14
lines changed
1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -415,10 +415,10 @@ func (tt *TransactionUploader) postTransaction() error {
415
415
}
416
416
417
417
func (tt * TransactionUploader ) uploadTx (withBody bool ) error {
418
- if withBody {
419
- // Post the Transaction with Data.
420
- tt .Transaction .Data = utils .Base64Encode (tt .Data )
421
- }
418
+ // if withBody {
419
+ // // Post the Transaction with Data.
420
+ // tt.Transaction.Data = utils.Base64Encode(tt.Data)
421
+ // }
422
422
body , statusCode , err := tt .Client .SubmitTransaction (tt .Transaction )
423
423
if err != nil || statusCode >= 400 {
424
424
tt .LastResponseError = fmt .Sprintf ("%v,%s" , err , body )
@@ -429,22 +429,22 @@ func (tt *TransactionUploader) uploadTx(withBody bool) error {
429
429
tt .LastRequestTimeEnd = time .Now ().UnixNano () / 1000000
430
430
tt .LastResponseStatus = statusCode
431
431
432
- if withBody {
433
- tt .Transaction .Data = ""
434
- }
432
+ // if withBody {
433
+ // tt.Transaction.Data = ""
434
+ // }
435
435
436
436
// tx already processed
437
437
if statusCode >= 200 && statusCode < 300 {
438
438
tt .TxPosted = true
439
- if withBody {
440
- // We are complete.
441
- tt .ChunkIndex = types .MAX_CHUNKS_IN_BODY
442
- }
439
+ // if withBody {
440
+ // // We are complete.
441
+ // tt.ChunkIndex = types.MAX_CHUNKS_IN_BODY
442
+ // }
443
443
return nil
444
444
}
445
445
446
- if withBody {
447
- tt .LastResponseError = ""
448
- }
446
+ // if withBody {
447
+ // tt.LastResponseError = ""
448
+ // }
449
449
return nil
450
450
}
You can’t perform that action at this time.
0 commit comments