Skip to content

Conversation

@speeddragon
Copy link

When HyperBeam processes bundled transactions, can take a while to process them (store each individually transaction inside the bundled transaction in cache) and return the information back to the user (fetch all the transaction information inside the bundled transaction).

To simplify and speed up the process of storing bundled transaction information, we allow the caching of the data in binary format without processing the transactions inside. This can be turned on or off (default is true to unbundle the bundled data, which is the current behaviour in edge), but by setting the store options <<"unbundle_bundled">> to false, it will store the data as is.

Comment on lines +428 to +434
UnbundleBundles = hb_opts:get(<<"unbundle_bundles">>, true, Opts),
case UnbundleBundles of
true ->
unbundle_list(Item);
false ->
Item
end;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the core logic, everything else is making sure Opts is given to the functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants