Skip to content

Commit

Permalink
Test commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaszslabon committed Sep 11, 2023
1 parent 7157a33 commit 650ee23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/bitcoin/electrum/electrum.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,8 @@ type scriptHistoryItem struct {
func (c *Connection) getConfirmedScriptHistory(
script []byte,
) ([]*scriptHistoryItem, error) {
scriptHash := sha256.Sum256(script)
reversedScriptHash := byteutils.Reverse(scriptHash[:])
scriptHashh := sha256.Sum256(script)
reversedScriptHash := byteutils.Reverse(scriptHashh[:])
reversedScriptHashString := hex.EncodeToString(reversedScriptHash)

items, err := requestWithRetry(
Expand Down Expand Up @@ -772,6 +772,7 @@ func requestWithRetry[K interface{}](
defer requestCancel()

c.clientMutex.RLock()

r, err := requestFn(requestCtx, c.client)
c.clientMutex.RUnlock()

Expand Down
1 change: 1 addition & 0 deletions pkg/bitcoin/electrum/electrum_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ func TestGetTransaction_Negative_Integration(t *testing.T) {
}

func TestGetTransactionConfirmations_Integration(t *testing.T) {

runParallel(t, func(t *testing.T, testConfig testConfig) {
electrum, cancelCtx := newTestConnection(t, testConfig.clientConfig)
defer cancelCtx()
Expand Down

0 comments on commit 650ee23

Please sign in to comment.