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
* Remove the constructors from options
* Upgrade the SDK for .NET Core
* Make sure we use runtime 3.1.4
* Remove the installation/setup of .NET SDK on build agent, this is pre-installed.
* Change the output assembly for NBitcoin Tests.
* Add some hardwired visible to attributes for NBitcoin project
Co-authored-by: SondreB <sondre@outlook.com>
/// <summary>Scale of witness vs other transaction data. e.g. if set to 4, then witnesses have 1/4 the weight per byte of other transaction data. </summary>
29
-
publicintWitnessScaleFactor{get;set;}
30
+
/// <summary>Scale of witness vs other transaction data. e.g. if set to 4,
31
+
/// then witnesses have 1/4 the weight per byte of other transaction data.
32
+
/// </summary>
33
+
publicintWitnessScaleFactor{get;set;}=4;
30
34
31
35
/// <summary>
32
36
/// Changing the default transaction version requires a two step process:
@@ -36,89 +40,26 @@ public class ConsensusOptions
36
40
/// <see cref="MaxStandardVersion"/> will be equal.</item>
37
41
/// </list>
38
42
/// </summary>
39
-
publicintMaxStandardVersion{get;set;}
43
+
publicintMaxStandardVersion{get;set;}=2;
40
44
41
45
/// <summary>The maximum weight for transactions we're willing to relay/mine.</summary>
42
-
publicintMaxStandardTxWeight{get;set;}
46
+
publicintMaxStandardTxWeight{get;set;}=400000;
43
47
44
48
/// <summary>The maximum allowed number of signature check operations in a block (network rule).</summary>
45
-
publicintMaxBlockSigopsCost{get;set;}
49
+
publicintMaxBlockSigopsCost{get;set;}=80000;
46
50
47
51
/// <summary>The maximum number of sigops we're willing to relay/mine in a single tx.</summary>
48
-
publicintMaxStandardTxSigopsCost{get;set;}
52
+
/// <remarks>
53
+
/// This value is calculated based on <see cref="MaxBlockSigopsCost"/> dived by 5.
/// <summary>The minimum protocol version which should be used from block height defined in <see cref="EnforceMinProtocolVersionAtBlockHeight"/></summary>
55
62
publicuint?EnforcedMinProtocolVersion{get;set;}
56
-
57
-
/// <summary>
58
-
/// Initializes the default values. Currently only used for initialising Bitcoin networks and testing.
59
-
/// </summary>
60
-
publicConsensusOptions()
61
-
{
62
-
// TODO: Remove this constructor. Should always set explicitly.
0 commit comments