Skip to content

[BUG] Unable to broadcast large transaction #789

@sirdeggen

Description

@sirdeggen

Bug Description

ARC would not accept this despite it being within the /v1/policy size limits.

Steps to Reproduce

  1. Create a large transaction (this one was 63.3MB)
  2. Broadcast using an binary body with content type application/octet-stream
  3. Send the same tx later to Bitails endpoint: https://api.bitails.io/tx/broadcast/multipart as form data body type setting the item "raw" to value: the same file.

Expected Behavior

ARC should decode the large transaction and broadcast it to nodes as usual.

Actual Behavior

502 Bad Gateway error from TAAL

Tried text/plain too:

{
	"detail": "The request seems to be malformed and cannot be processed",
	"extraInfo": "error parsing transaction from request: encoding/hex: invalid byte: U+0001",
	"instance": null,
	"status": 400,
	"title": "Bad request",
	"txid": null,
	"type": "https://bitcoin-sv.github.io/arc/#/errors?id=_400"
}

Gorilla Pool

{
	"detail": "BEEF validation failed: couldn't validate Merkle Roots",
	"extraInfo": "arc error 469: rpc error: code = Unknown desc = pq: column b.is_longest does not exist",
	"instance": null,
	"status": 469,
	"title": "Merkle Roots validation failed",
	"txid": "42ebec231671c3e1a98bcbc8c3feecb06bb6cde45b4e1ef1aba17a2bc144aa1e",
	"type": "https://bitcoin-sv.github.io/arc/#/errors?id=_469"
}

Additional Information

Bitails response was as expected:

{
	"txid": "42ebec231671c3e1a98bcbc8c3feecb06bb6cde45b4e1ef1aba17a2bc144aa1e"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions