Skip to content

Commit 50b99da

Browse files
authored
Merge pull request #212 from bsv-blockchain/fix/beef-validation-stability
Fix BEEF validation issues and refactor validation logic (#211, #96)
2 parents b039bce + 6b6da17 commit 50b99da

File tree

6 files changed

+460
-228
lines changed

6 files changed

+460
-228
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file. The format
44

55
## Table of Contents
66

7+
- [1.2.6 - 2025-07-21](#126---2025-07-21)
78
- [1.2.5 - 2025-07-16](#125---2025-07-16)
89
- [1.2.4 - 2025-06-30](#124---2025-06-30)
910
- [1.2.3 - 2025-06-30](#123---2025-06-30)
@@ -40,6 +41,21 @@ All notable changes to this project will be documented in this file. The format
4041
- [1.1.0 - 2024-08-19](#110---2024-08-19)
4142
- [1.0.0 - 2024-06-06](#100---2024-06-06)
4243

44+
## [1.2.6] - 2025-07-21
45+
46+
### Fixed
47+
- Fixed BEEF validation stability issue where `IsValid` returned inconsistent results (#211)
48+
- Fixed BEEF parsing panic when encountering transactions without merkle paths (#96)
49+
- Fixed validation logic to properly check if transactions appear in BUMPs
50+
- Fixed README installation instructions to use `go get` instead of `go install` (#202)
51+
52+
### Changed
53+
- Renamed `SortTxs()` method to `ValidateTransactions()` for clarity
54+
- Improved BEEF validation to handle transactions without source transactions gracefully
55+
- Refactored BEEF implementation to use `chainhash.Hash` directly as map keys instead of string conversions for improved performance
56+
- Added `*ByHash` versions of BEEF methods (`findTxidByHash`, `FindBumpByHash`, etc.) to avoid unnecessary hash/string conversions
57+
- Updated `collectAncestors` to return `[]chainhash.Hash` instead of `[]string`
58+
4359
## [1.2.5] - 2025-07-16
4460

4561
### Changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ The BSV Blockchain Libraries Project aims to structure and maintain a middleware
3232

3333
### Installation
3434

35-
To install the SDK, run:
35+
To add the SDK to your Go module:
3636

3737
```bash
38-
go install github.com/bsv-blockchain/go-sdk
38+
go get github.com/bsv-blockchain/go-sdk
3939
```
4040

4141
### Basic Usage

0 commit comments

Comments
 (0)