Skip to content
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

rpcclient: serialize nil inputs to empty list #1558

Merged

Conversation

torkelrogstad
Copy link
Contributor

Prior to this, calling CreateRawTransaction(nil, ...) failed. We fix this, and add a test for the serialization.

Copy link
Contributor

@Rjected Rjected left a comment

Choose a reason for hiding this comment

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

Nice!

@Rjected Rjected mentioned this pull request May 12, 2020
Copy link
Contributor

@onyb onyb left a comment

Choose a reason for hiding this comment

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

@torkelrogstad I think this deserves an update to the docs of:

  • CreateRawTransaction
  • CreateRawTransactionAsync
  • btcjson.NewCreateRawTransactionCmd

Something like this:

// If the value of inputs is nil, it will be interpreted as an empty slice.

What do you think?

@torkelrogstad torkelrogstad force-pushed the 2020-04-02-create-raw-tx branch from 4811306 to 126ee73 Compare May 22, 2020 08:30
@torkelrogstad
Copy link
Contributor Author

Pushed some doc tweaks 👍

btcjson/chainsvrcmds.go Outdated Show resolved Hide resolved
@torkelrogstad torkelrogstad force-pushed the 2020-04-02-create-raw-tx branch from 126ee73 to 27bf300 Compare May 22, 2020 11:37
@onyb
Copy link
Contributor

onyb commented May 22, 2020

@torkelrogstad CI is not happy. 🔴

@torkelrogstad
Copy link
Contributor Author

Seems like I was a bit trigger happy with pushing! Missed a gofmt

@torkelrogstad torkelrogstad force-pushed the 2020-04-02-create-raw-tx branch from 27bf300 to 42556b2 Compare May 22, 2020 12:55
Copy link
Contributor

@onyb onyb left a comment

Choose a reason for hiding this comment

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

Looks good. 👍

@jakesylvestre
Copy link
Collaborator

We might have to update this branch from master to get rid of the travis health check

@onyb
Copy link
Contributor

onyb commented May 23, 2020

We might have to update this branch from master to get rid of the travis health check

@jakesyl At least on my PRs, rebasing on latest master doesn't get rid of the check. I think it applies to all PRs created before TravisCI was removed. Or perhaps, there are some settings on GitHub/TravisCI that need to be updated.

@jakesylvestre
Copy link
Collaborator

I think @Roasbeef might have to remove the check

@torkelrogstad
Copy link
Contributor Author

We might have to update this branch from master to get rid of the travis health check

I rebased this right before the weekend, without it removing the Travis check.

@Rjected
Copy link
Contributor

Rjected commented May 26, 2020

In #1575 the .travis.yml file was removed from the repo without the status check being removed as well. Unless we remove the status check, nothing, including updating the branch, will get travis to run.

@Rjected
Copy link
Contributor

Rjected commented May 30, 2020

Should be good now!

Copy link
Member

@jcvernaleo jcvernaleo left a comment

Choose a reason for hiding this comment

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

OK

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.

5 participants