-
Notifications
You must be signed in to change notification settings - Fork 38
GH-68 Broadcasting new transactions to other peers #94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
case direction do | ||
:serialize -> | ||
tx | ||
|> :erlang.term_to_binary() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
like this all of the transaction will be a base64 string, only the binary fields should be handled like this, so a readable json format is used. See the Serialize.block() function.
apps/aehttpclient/lib/client.ex
Outdated
Send newest transactions to a peer | ||
""" | ||
@spec broadcast_tx(String.t, map()) :: {:ok, map()} | {:error, term()} | ||
def broadcast_tx(uri, tx) do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to send_tx
Closes #68