Skip to content

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

Merged
merged 5 commits into from
Oct 27, 2017
Merged

Conversation

HristianHristov
Copy link
Contributor

Closes #68

case direction do
:serialize ->
tx
|> :erlang.term_to_binary()
Copy link
Collaborator

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.

Send newest transactions to a peer
"""
@spec broadcast_tx(String.t, map()) :: {:ok, map()} | {:error, term()}
def broadcast_tx(uri, tx) do
Copy link
Collaborator

Choose a reason for hiding this comment

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

rename to send_tx

@meivantodorov meivantodorov merged commit ab8ba3f into master Oct 27, 2017
@thepiwo thepiwo deleted the GH-68 branch October 5, 2018 11:53
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.

4 participants