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

go-kosu: fixing witness issues #230

Merged
merged 3 commits into from Aug 27, 2019
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Prev

go-kosu: panic on invalid address

  • Loading branch information
gchaincl committed Aug 27, 2019
commit c1a9fa4fdd670700ddd308e156c387f51b3e3ac0
@@ -162,7 +162,10 @@ func (w *Witness) broadcastTxSync(tx interface{}, args []interface{}) {

func (w *Witness) handlePosterRegistryUpdate(e *EventEmitterKosuEvent) {
// offset by 12 because the 20 byte address is packed into 32 bytes
address, _ := store.NewAddress(e.Data[0][12:])
address, err := store.NewAddress(e.Data[0][12:])
if err != nil {
panic(err)
}

tx := &types.TransactionWitness{
Subject: types.TransactionWitness_POSTER,
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.