Skip to content

Commit

Permalink
Merge pull request #11 from delta1/v0.0.0-20231118123100-e0a4d73f7f8f
Browse files Browse the repository at this point in the history
elements: add blech32 to addrtype
  • Loading branch information
wtogami authored Nov 26, 2023
2 parents ef34d84 + e0a4d73 commit e32b4da
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gelements/elementsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (e *Elements) StartUp(host string, port uint) error {
// Blocking!
func (b *Elements) request(m jrpc2.Method, resp interface{}) error {
id := b.NextId()
mr := &jrpc2.Request{id, m}
mr := &jrpc2.Request{Id: id, Method: m}
jbytes, err := json.Marshal(mr)
if err != nil {
return err
Expand Down Expand Up @@ -354,10 +354,11 @@ const (
Bech32 AddrType = iota
P2shSegwit
Legacy
Blech32
)

func (a AddrType) String() string {
return []string{"bech32", "p2sh-segwit", "legacy"}[a]
return []string{"bech32", "p2sh-segwit", "legacy", "blech32"}[a]
}

func (r *GetNewAddressRequest) Name() string {
Expand Down

0 comments on commit e32b4da

Please sign in to comment.