Skip to content

Commit e32b4da

Browse files
authored
Merge pull request #11 from delta1/v0.0.0-20231118123100-e0a4d73f7f8f
elements: add blech32 to addrtype
2 parents ef34d84 + e0a4d73 commit e32b4da

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

gelements/elementsd.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func (e *Elements) StartUp(host string, port uint) error {
101101
// Blocking!
102102
func (b *Elements) request(m jrpc2.Method, resp interface{}) error {
103103
id := b.NextId()
104-
mr := &jrpc2.Request{id, m}
104+
mr := &jrpc2.Request{Id: id, Method: m}
105105
jbytes, err := json.Marshal(mr)
106106
if err != nil {
107107
return err
@@ -354,10 +354,11 @@ const (
354354
Bech32 AddrType = iota
355355
P2shSegwit
356356
Legacy
357+
Blech32
357358
)
358359

359360
func (a AddrType) String() string {
360-
return []string{"bech32", "p2sh-segwit", "legacy"}[a]
361+
return []string{"bech32", "p2sh-segwit", "legacy", "blech32"}[a]
361362
}
362363

363364
func (r *GetNewAddressRequest) Name() string {

0 commit comments

Comments
 (0)