This commit is contained in:
Josh Rickmar 2014-05-30 12:46:41 -05:00
parent 454fc3904a
commit c7200659d1

View file

@ -760,7 +760,7 @@ func (tx *msgTx) ReadFrom(r io.Reader) (int64, error) {
func (tx *msgTx) WriteTo(w io.Writer) (int64, error) {
// Write to a buffer and then copy to w so the total number of bytes
// written can be returned to the caller. Writing to a to a
// bytes.Buffer never fails except for OOM panics, so check and panic
// bytes.Buffer never fails except for OOM panics, so check and panic
// on any unexpected non-nil returned errors.
buf := new(bytes.Buffer)
if err := (*btcwire.MsgTx)(tx).Serialize(buf); err != nil {