mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 23:09:44 -04:00
Add destroy to BlockTemplate schema
This ensures that if a client no longer needs a block template, the node can clear its memory as soon as possible. A block template may hold on to transactions that are no longer in the mempool, so this can be significant.
This commit is contained in:
parent
85bcfeea23
commit
9aa50152c1
1 changed files with 10 additions and 9 deletions
|
@ -24,15 +24,16 @@ interface Mining $Proxy.wrap("interfaces::Mining") {
|
||||||
}
|
}
|
||||||
|
|
||||||
interface BlockTemplate $Proxy.wrap("interfaces::BlockTemplate") {
|
interface BlockTemplate $Proxy.wrap("interfaces::BlockTemplate") {
|
||||||
getBlockHeader @0 (context: Proxy.Context) -> (result: Data);
|
destroy @0 (context :Proxy.Context) -> ();
|
||||||
getBlock @1 (context: Proxy.Context) -> (result: Data);
|
getBlockHeader @1 (context: Proxy.Context) -> (result: Data);
|
||||||
getTxFees @2 (context: Proxy.Context) -> (result: List(Int64));
|
getBlock @2 (context: Proxy.Context) -> (result: Data);
|
||||||
getTxSigops @3 (context: Proxy.Context) -> (result: List(Int64));
|
getTxFees @3 (context: Proxy.Context) -> (result: List(Int64));
|
||||||
getCoinbaseTx @4 (context: Proxy.Context) -> (result: Data);
|
getTxSigops @4 (context: Proxy.Context) -> (result: List(Int64));
|
||||||
getCoinbaseCommitment @5 (context: Proxy.Context) -> (result: Data);
|
getCoinbaseTx @5 (context: Proxy.Context) -> (result: Data);
|
||||||
getWitnessCommitmentIndex @6 (context: Proxy.Context) -> (result: Int32);
|
getCoinbaseCommitment @6 (context: Proxy.Context) -> (result: Data);
|
||||||
getCoinbaseMerklePath @7 (context: Proxy.Context) -> (result: List(Data));
|
getWitnessCommitmentIndex @7 (context: Proxy.Context) -> (result: Int32);
|
||||||
submitSolution@8 (context: Proxy.Context, version: UInt32, timestamp: UInt32, nonce: UInt32, coinbase :Data) -> (result: Bool);
|
getCoinbaseMerklePath @8 (context: Proxy.Context) -> (result: List(Data));
|
||||||
|
submitSolution @9 (context: Proxy.Context, version: UInt32, timestamp: UInt32, nonce: UInt32, coinbase :Data) -> (result: Bool);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct BlockCreateOptions $Proxy.wrap("node::BlockCreateOptions") {
|
struct BlockCreateOptions $Proxy.wrap("node::BlockCreateOptions") {
|
||||||
|
|
Loading…
Add table
Reference in a new issue