-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2053 from yyforyongyu/testmempoolaccept
support `testmempoolaccept` for both `bitcoind` and `btcd`
- Loading branch information
Showing
26 changed files
with
2,063 additions
and
339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,8 @@ btcutil/psbt/coverage.txt | |
|
||
# vim | ||
*.swp | ||
*.swo | ||
/.vim | ||
|
||
# Binaries produced by "make build" | ||
/addblock | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
//go:build rpctest | ||
// +build rpctest | ||
|
||
package integration | ||
|
||
import ( | ||
"os" | ||
|
||
"github.com/btcsuite/btcd/rpcclient" | ||
"github.com/btcsuite/btclog" | ||
) | ||
|
||
type logWriter struct{} | ||
|
||
func (logWriter) Write(p []byte) (n int, err error) { | ||
os.Stdout.Write(p) | ||
return len(p), nil | ||
} | ||
|
||
func init() { | ||
backendLog := btclog.NewBackend(logWriter{}) | ||
testLog := backendLog.Logger("ITEST") | ||
testLog.SetLevel(btclog.LevelDebug) | ||
|
||
rpcclient.UseLogger(testLog) | ||
} |
Oops, something went wrong.