You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge rust-bitcoin#485: Add getblock verbosity 2/3 support for v29 onward
9c325ef feat: implement getblock verbosity levels 2-3 return types (renato)
515955e fix(types): remove comment for weight conversion in GetBlockVerbose (renato)
3532f06 feat(types): add coinbase tx support in RawTransactionInput type (renato)
Pull request description:
This PR:
- Adds full support for `getblock` RPC with verbosity levels 2 and 3 for v29 and later.
- Add coinbase transaction support in `RawTransactionInput` type, to be fully compliant with the RPC specification.
- Introduces versioned RPC types and model conversions, including transaction fees and prevout data, extends raw transaction input handling to correctly support coinbase inputs, and updates the client API with verbosity levels.
- Adds integration tests to validate new models conversions.
- Removes FIXME comment regarding weight units on getblock verbosity 0 and 1, the value really is weight units (WU).
This partially fixesrust-bitcoin#474.
Notably missing are the changes in implementation from v17 to v28 inclusive.
ACKs for top commit:
tcharding:
ACK 9c325ef
Tree-SHA512: 6f9a63fce50fae03218e338c59e4a723b001adb1fad2e38f242b7757098885ca358666fe458f49a1bf74e648b572f22bfc72a4a6f3ea5be3698b0c372a4e38ab
/// The transaction fee in BTC, omitted if block undo data is not available.
191
+
pubfee:Option<Amount>,
192
+
}
193
+
194
+
/// The prevout information for a transaction input (verbosity 3 only).
195
+
/// TODO: This type adding prevouts is exactly the same as the getrawtransaction's type with verbosity set to 2, which is not implemented yet. Consider reusing that structure when implemented.
0 commit comments