Page MenuHomePhabricator
Feed Advanced Search

Jan 20 2020

markblundeberg added a task to D5028: [WIP] track per-transaction SigChecks using a TransactionMetricsAccumulator: T704: sigChecks implementation.
Jan 20 2020, 13:24
markblundeberg added a comment to D5029: deactivate sigops limits in phonon upgrade.

Unhappy tests on my local run (with upgrade activated):

abc-mempool-accept-txn.py               | ✖ Failed  | 1 s
abc-p2p-fullblocktest.py                | ✖ Failed  | 45 s
feature_block.py                        | ✖ Failed  | 62 s
Jan 20 2020, 12:08
markblundeberg added inline comments to D5029: deactivate sigops limits in phonon upgrade.
Jan 20 2020, 12:01
markblundeberg planned changes to D5029: deactivate sigops limits in phonon upgrade.

The C++ tests seems to be totally happy, the main issue is dealing with functional tests.

Jan 20 2020, 11:59
markblundeberg added inline comments to D5029: deactivate sigops limits in phonon upgrade.
Jan 20 2020, 11:58
markblundeberg created D5029: deactivate sigops limits in phonon upgrade.
Jan 20 2020, 11:57
markblundeberg planned changes to D5028: [WIP] track per-transaction SigChecks using a TransactionMetricsAccumulator.

is wip

Jan 20 2020, 10:30
markblundeberg retitled D5028: [WIP] track per-transaction SigChecks using a TransactionMetricsAccumulator from track per-transaction SigChecks using a TransactionMetricsAccumulator to [WIP] track per-transaction SigChecks using a TransactionMetricsAccumulator.
Jan 20 2020, 10:30
markblundeberg created D5028: [WIP] track per-transaction SigChecks using a TransactionMetricsAccumulator.
Jan 20 2020, 10:29
markblundeberg requested review of D4940: add a flag that (if unset) zeroes sigchecks reported by VerifyScript.

@deadalnix returning for review due to slight changes. Note after our discussion that ScriptExecutionMetrics will remain a pure struct (as it is in this diff) since accumulation etc will happen elsewhere.

Jan 20 2020, 06:15
markblundeberg updated the diff for D4940: add a flag that (if unset) zeroes sigchecks reported by VerifyScript.

remove dependency on D4834 , use xor

Jan 20 2020, 06:13
markblundeberg added inline comments to D4903: Use virtualsize for mining/mempool priority.
Jan 20 2020, 05:46
markblundeberg added inline comments to D4903: Use virtualsize for mining/mempool priority.
Jan 20 2020, 04:49
markblundeberg requested review of D5019: CreateNewBlock: insert entries into block slightly earlier so that correct size is logged.
Jan 20 2020, 04:16
markblundeberg added inline comments to D5027: always unpark even when -parkdeepreorg=0.
Jan 20 2020, 04:13
markblundeberg planned changes to D5027: always unpark even when -parkdeepreorg=0.
Jan 20 2020, 04:09
markblundeberg added inline comments to D5027: always unpark even when -parkdeepreorg=0.
Jan 20 2020, 04:08
markblundeberg added a reviewer for D5027: always unpark even when -parkdeepreorg=0: Fabien.
Jan 20 2020, 04:08
markblundeberg created D5027: always unpark even when -parkdeepreorg=0.
Jan 20 2020, 04:07
markblundeberg added inline comments to D4903: Use virtualsize for mining/mempool priority.
Jan 20 2020, 00:03

Jan 19 2020

markblundeberg retitled D5019: CreateNewBlock: insert entries into block slightly earlier so that correct size is logged from CreateNewBlock: insert entries into block slightly earlier to CreateNewBlock: insert entries into block slightly earlier so that correct size is logged.
Jan 19 2020, 05:57
markblundeberg created D5022: CreateNewBlock: small tweaks.
Jan 19 2020, 05:55
markblundeberg updated the diff for D5019: CreateNewBlock: insert entries into block slightly earlier so that correct size is logged.

simplify changes to smallest possible (move-only on the for loop, and an extra update)

Jan 19 2020, 04:42
markblundeberg added inline comments to D5019: CreateNewBlock: insert entries into block slightly earlier so that correct size is logged.
Jan 19 2020, 04:37
markblundeberg added a comment to D5019: CreateNewBlock: insert entries into block slightly earlier so that correct size is logged.

(For reference, this mechanism was introduced in D2047 which was basically a good fix.)

Jan 19 2020, 03:35
markblundeberg updated the diff for D5018: add input sigchecks limit to STANDARD_SCRIPT_VERIFY_FLAGS (but not mempool flags).

rebase

Jan 19 2020, 02:18
markblundeberg updated the diff for D5017: [abc-wallet-standardness] do test the signing error code.

rebase

Jan 19 2020, 02:17
markblundeberg planned changes to D5013: CheckBlockIndex before unlocking cs_main.
Jan 19 2020, 02:15
markblundeberg added inline comments to D4834: add sigChecks value to script cache.
Jan 19 2020, 00:43

Jan 18 2020

markblundeberg added inline comments to D5019: CreateNewBlock: insert entries into block slightly earlier so that correct size is logged.
Jan 18 2020, 17:17
markblundeberg created D5019: CreateNewBlock: insert entries into block slightly earlier so that correct size is logged.
Jan 18 2020, 17:12
markblundeberg added a comment to D4903: Use virtualsize for mining/mempool priority.

A note for curiosity: I tried to make the same kind of test using fundrawtransaction / signrawtransactionwithwallet RPC, however it took about 100 ms per tx. So with 500 txes, that made a 50 second long test, yuck! This test runs in 2 seconds.

Jan 18 2020, 16:31
markblundeberg updated the diff for D4917: more optimal virtualsize accounting with increments.

simplify API ; rebase

Jan 18 2020, 16:29
markblundeberg added inline comments to D4917: more optimal virtualsize accounting with increments.
Jan 18 2020, 16:26
markblundeberg updated the diff for D4903: Use virtualsize for mining/mempool priority.

add test

Jan 18 2020, 16:24
markblundeberg created D5018: add input sigchecks limit to STANDARD_SCRIPT_VERIFY_FLAGS (but not mempool flags).
Jan 18 2020, 12:15
markblundeberg created D5017: [abc-wallet-standardness] do test the signing error code.
Jan 18 2020, 11:26
markblundeberg added inline comments to D5015: simplify ATMP standard flag computation [2/2] - move computation to another function.
Jan 18 2020, 11:24
markblundeberg created D5016: fix a test in anticipation of SCRIPT_VERIFY_INPUT_SIGCHECKS activation.
Jan 18 2020, 11:13
markblundeberg created D5015: simplify ATMP standard flag computation [2/2] - move computation to another function.
Jan 18 2020, 11:04
markblundeberg created D5014: simplify ATMP standard flag computation [1/2] - remove CHECKDATASIG_SIGOPS.
Jan 18 2020, 11:02
markblundeberg abandoned D4897: Add virtualsize tracking to mempool.
Jan 18 2020, 04:50
markblundeberg updated the diff for D4834: add sigChecks value to script cache.

rebase ; comments ; tweak to not use uint256

Jan 18 2020, 04:49
markblundeberg added inline comments to D4834: add sigChecks value to script cache.
Jan 18 2020, 04:48
markblundeberg abandoned D4716: do not accept anything into mempool before UAHF has activated.

Fabien added some comments to this effect in D4642.

Jan 18 2020, 04:38
markblundeberg abandoned D4902: change default -blockmintxfee to 0.

Going to drop this from my queue for now, but I still think it's worth considering in future.

Jan 18 2020, 04:37
markblundeberg added inline comments to D5013: CheckBlockIndex before unlocking cs_main.
Jan 18 2020, 04:33
markblundeberg requested review of D4941: track ScriptExecutionMetrics in CheckInputs.
Jan 18 2020, 04:05
markblundeberg added a comment to D5013: CheckBlockIndex before unlocking cs_main.

The remaining inconsistencies are probably related to this fix:

Jan 18 2020, 03:43
markblundeberg requested changes to D4929: Make last disconnected block BLOCK_FAILED_VALID, even when aborted.
Jan 18 2020, 03:32
markblundeberg added a comment to D5013: CheckBlockIndex before unlocking cs_main.

OK, just a few failures remaining now, so it's better with that parent but something still wrong...

Jan 18 2020, 03:26
markblundeberg updated the summary of D5013: CheckBlockIndex before unlocking cs_main.
Jan 18 2020, 03:23
markblundeberg updated the diff for D5013: CheckBlockIndex before unlocking cs_main.

rebase onto D4929

Jan 18 2020, 03:22
markblundeberg added a comment to D5013: CheckBlockIndex before unlocking cs_main.

Above failures on master, now will try rebased.

Jan 18 2020, 03:12
markblundeberg updated the summary of D5013: CheckBlockIndex before unlocking cs_main.
Jan 18 2020, 03:06
markblundeberg created D5013: CheckBlockIndex before unlocking cs_main.
Jan 18 2020, 03:06
markblundeberg added a comment to D4929: Make last disconnected block BLOCK_FAILED_VALID, even when aborted.

From what I can tell, this change is actually a bugfix and should have really been combined with D4802. Please get this landed soon.

Jan 18 2020, 02:47

Jan 16 2020

markblundeberg added inline comments to D4941: track ScriptExecutionMetrics in CheckInputs.
Jan 16 2020, 07:53
markblundeberg added a comment to D4950: Fully revert D4803 due to TSAN test failures.

Hmm weird that build failures happen with this patch, it smells like one of the prior diffs (which all got landed sort of at once) may actually be responsible. Safest option might be to revert all.

Jan 16 2020, 07:15
markblundeberg accepted D4871: Added OP_REVERSEBYTES+implementation, added (always disabled) activation flag.

Tiny quibble but otherwise good.

Jan 16 2020, 07:12
markblundeberg added a comment to D4757: Call RewindBlockIndex without cs_main held.

For some reason my name appears as the Author for the commit, any idea why that happened?

Jan 16 2020, 04:40
markblundeberg added inline comments to D4834: add sigChecks value to script cache.
Jan 16 2020, 01:24
markblundeberg added inline comments to D4834: add sigChecks value to script cache.
Jan 16 2020, 01:19
markblundeberg added inline comments to D4834: add sigChecks value to script cache.
Jan 16 2020, 01:14
markblundeberg added inline comments to D4834: add sigChecks value to script cache.
Jan 16 2020, 01:13

Jan 15 2020

markblundeberg added a comment to D4903: Use virtualsize for mining/mempool priority.

There is another side-effect here, which is that bumping GetMinFee can technically bring sigops (and virtualsize) into play for wallet estimation. To accurately capture this would really suck, since we would need to communicate two fee rates (one for min relay fee in sat/byte, and one for the mempool rolling fee floor in sat/vbyte).

Jan 15 2020, 07:44

Jan 14 2020

markblundeberg added inline comments to D4942: Call FinalizeBlockAndInvalidate without cs_main held.
Jan 14 2020, 21:31
markblundeberg added a comment to D4939: Move the functional test temporary directory under the build directory.

Seems OK I guess, we'll just have to remember to nuke test/tmp on our local builds occasionally as it fills up with test failures.

Jan 14 2020, 21:23
markblundeberg added a comment to D4871: Added OP_REVERSEBYTES+implementation, added (always disabled) activation flag.

Snippet of first build failure:

[17:32:02]W:	 [Step 1/1] + case "$ABC_BUILD_NAME" in
[17:32:02] :	 [Step 1/1] Error: Invalid build name 'build-diff'
[17:32:02]W:	 [Step 1/1] + echo 'Error: Invalid build name '\''build-diff'\'''
[17:32:02]W:	 [Step 1/1] + exit 2
[17:32:02]W:	 [Step 1/1] Process exited with code 2
[17:32:02]E:	 [Step 1/1] Process exited with code 2 (Step: Command Line)

This seems like a configuration error. Does someone know what‘s going on there?

Jan 14 2020, 20:17
markblundeberg created D4941: track ScriptExecutionMetrics in CheckInputs.
Jan 14 2020, 15:05
markblundeberg added inline comments to D4937: tweak auto-unparking message.
Jan 14 2020, 13:36
markblundeberg added a revision to T704: sigChecks implementation: D4940: add a flag that (if unset) zeroes sigchecks reported by VerifyScript.
Jan 14 2020, 12:35
markblundeberg added a task to D4940: add a flag that (if unset) zeroes sigchecks reported by VerifyScript: T704: sigChecks implementation.
Jan 14 2020, 12:35
markblundeberg created D4940: add a flag that (if unset) zeroes sigchecks reported by VerifyScript.
Jan 14 2020, 12:34
markblundeberg added a revision to T704: sigChecks implementation: D4920: save ScriptExecutionMetrics during CScriptCheck.
Jan 14 2020, 09:50
markblundeberg added a task to D4920: save ScriptExecutionMetrics during CScriptCheck: T704: sigChecks implementation.
Jan 14 2020, 09:50
markblundeberg created D4937: tweak auto-unparking message.
Jan 14 2020, 08:53
markblundeberg updated the diff for D4834: add sigChecks value to script cache.

big overhaul to use ScriptExecutionMetrics

Jan 14 2020, 08:34
markblundeberg updated the diff for D4935: [validation.cpp] parking-related comment tweaks.

add another comment

Jan 14 2020, 04:41
markblundeberg created D4935: [validation.cpp] parking-related comment tweaks.
Jan 14 2020, 04:40
markblundeberg added a comment to D4803: Prevent callback overruns in InvalidateBlock and RewindBlockIndex.

This clearly includes a lot of code that isn't in the original PR. Where does the clocking mechanism changes come from?

The new code is related to @markblundeberg and your comments in D4758: InvalidateBlock now requires that cs_main be unlocked.
Also: abc-finalize-block is broken here if I don't make the changes. (Not broken in previous Diffs).
I could move the related code to D4758 (I didn't do it because it had already been approved) or to a new Diff.

Jan 14 2020, 00:32

Jan 13 2020

markblundeberg accepted D4900: parameterize ecmult_const over input size.

Never mind, I was wrong -- Core does have these changes.

Jan 13 2020, 23:16
markblundeberg added a revision to T704: sigChecks implementation: D4918: move ScriptExecutionMetrics to its own file.
Jan 13 2020, 15:09
markblundeberg added a task to D4918: move ScriptExecutionMetrics to its own file: T704: sigChecks implementation.
Jan 13 2020, 15:09
markblundeberg created D4926: move MANDATORY_SCRIPT_VERIFY_FLAGS to policy.h.
Jan 13 2020, 14:32
markblundeberg added a comment to D4900: parameterize ecmult_const over input size.

Out of curiosity, why are we backporting these when Core doesn't have them in their master?

Jan 13 2020, 14:13
markblundeberg created D4923: [tests] remove test_bitcoin.h dependency on txmempool.h.
Jan 13 2020, 14:01
markblundeberg updated the test plan for D4918: move ScriptExecutionMetrics to its own file.
Jan 13 2020, 13:00
markblundeberg added a comment to D4920: save ScriptExecutionMetrics during CScriptCheck.

Note: As far as closures go, CScriptCheck is slightly weird because it saves (some of) the results into the closure, rather than returning them.

Jan 13 2020, 12:52
markblundeberg created D4920: save ScriptExecutionMetrics during CScriptCheck.
Jan 13 2020, 12:44
markblundeberg created D4918: move ScriptExecutionMetrics to its own file.
Jan 13 2020, 12:27
markblundeberg added a comment to D4834: add sigChecks value to script cache.

I am thinking of making two changes here:

Jan 13 2020, 11:00
markblundeberg updated the diff for D4834: add sigChecks value to script cache.

update tests

Jan 13 2020, 07:58
markblundeberg added inline comments to D4834: add sigChecks value to script cache.
Jan 13 2020, 07:55
markblundeberg added a comment to D4917: more optimal virtualsize accounting with increments.

Or should it be called GetVirtualSizeIncrement instead of GetIncrementalVirtualSize ?

Jan 13 2020, 07:50
markblundeberg added a comment to D4903: Use virtualsize for mining/mempool priority.

I have a feeling this needs some tests...

Jan 13 2020, 06:42
markblundeberg added a comment to D4917: more optimal virtualsize accounting with increments.

This could be integrated into the mentioned Diffs, but I figured the mathematical concepts here are a bit weird and deserve a separate think.

Jan 13 2020, 05:13
markblundeberg updated the summary of D4917: more optimal virtualsize accounting with increments.
Jan 13 2020, 05:10
markblundeberg accepted D4915: scripted-diff: Remove unused first argument to addUnchecked.
Jan 13 2020, 05:09
markblundeberg created D4917: more optimal virtualsize accounting with increments.
Jan 13 2020, 05:08