Page MenuHomePhabricator
Feed Advanced Search

Aug 8 2017

CCulianu closed D450: Set mode +x to signrawtransactions.py by committing rABC3e24257cec55: Set mode +x to signrawtransactions.py.
Aug 8 2017, 18:43
CCulianu updated the summary of D450: Set mode +x to signrawtransactions.py.
Aug 8 2017, 18:39
Herald added a reviewer for D450: Set mode +x to signrawtransactions.py: Restricted Project.
Aug 8 2017, 18:39
CCulianu added inline comments to D449: Fix RPC signrawtransaction silently accepting missing amount field, make it throw an error instead.
Aug 8 2017, 18:02
CCulianu committed rABC627f62640bbb: Run autopep8 signrawtransactions.py (authored by CCulianu).
Run autopep8 signrawtransactions.py
Aug 8 2017, 17:53
CCulianu closed D448: Run autopep8 signrawtransactions.py by committing rABC627f62640bbb: Run autopep8 signrawtransactions.py.
Aug 8 2017, 17:53
CCulianu added a reviewer for D442: Do not check for non replay protected transaction in CheckInputs: awemany.
Aug 8 2017, 17:22
CCulianu added reviewers for D442: Do not check for non replay protected transaction in CheckInputs: sickpig, thezerg.
Aug 8 2017, 17:20
CCulianu retitled D449: Fix RPC signrawtransaction silently accepting missing amount field, make it throw an error instead from Fix RPC signrawtransaction silently accepting missing amount field, make it throw an error instead AbandonedPublic to Fix RPC signrawtransaction silently accepting missing amount field, make it throw an error instead.
Aug 8 2017, 17:15
CCulianu abandoned D447: Fix RPC signrawtransaction silently accepting missing amount field, make it throw an error instead AbandonedPublic.
Aug 8 2017, 17:14
CCulianu updated the test plan for D449: Fix RPC signrawtransaction silently accepting missing amount field, make it throw an error instead.
Aug 8 2017, 17:13
CCulianu created D449: Fix RPC signrawtransaction silently accepting missing amount field, make it throw an error instead.
Aug 8 2017, 17:11
Herald added a reviewer for D448: Run autopep8 signrawtransactions.py: Restricted Project.
Aug 8 2017, 16:53
CCulianu added a comment to D447: Fix RPC signrawtransaction silently accepting missing amount field, make it throw an error instead AbandonedPublic.
In D447#7647, @sickpig wrote:
In D447#7644, @CCulianu wrote:

So you want me to create *two* diffs? One with just formatting (autopep8) stuff and one with my changes?

yes.

I suppose your are using a local branch cloned from master to dev this feature, right?

if it is the case create a new branch based on master, apply the formatting change, arc diff.

The new one will be quickly accepted by @deadalnix (and me fwiw), then you can land it. Once landed (merged) just merge/rebase master onto your local branch, fix conflicts (if any), and then run arc diff to update this diff.

Aug 8 2017, 16:46
CCulianu added a comment to D442: Do not check for non replay protected transaction in CheckInputs.

I tested this on a real bitcoin server on mainnet I'm getting BUCash nodes getting banned with the non-mandatory-script-verify-flag message.

Aug 8 2017, 16:43
CCulianu added a comment to D447: Fix RPC signrawtransaction silently accepting missing amount field, make it throw an error instead AbandonedPublic.

@sickpig : I *agree* with you. The thing is I'm between a rock and a hard place. If I don't let the 'arcanist' auto-linter apply the formatting changes, @deadalnix won't accept it because the code has "linter" code style errors. If I allow the linter to run, it produces this huge diff that has formatting stuff mixed in with logic changes.

Aug 8 2017, 16:35
CCulianu accepted D445: autopep8 various tests.

all ok

Aug 8 2017, 16:13
CCulianu added a comment to D444: Only accept replay protected transactions in the mempool..
Aug 8 2017, 16:12
CCulianu added a comment to D447: Fix RPC signrawtransaction silently accepting missing amount field, make it throw an error instead AbandonedPublic.

@dgenr8: As per your comment in the github issue 63:

Aug 8 2017, 15:13
Herald added a reviewer for D447: Fix RPC signrawtransaction silently accepting missing amount field, make it throw an error instead AbandonedPublic: Restricted Project.
Aug 8 2017, 15:10
CCulianu abandoned D446: Fix RPC signrawtransaction silently accepting missing amount field, make it throw an error instead.
Aug 8 2017, 15:07
CCulianu abandoned D441: Fix RPC signrawtransaction silently accepting missing amount field, make it throw an error instead.
Aug 8 2017, 15:06
Herald added a reviewer for D446: Fix RPC signrawtransaction silently accepting missing amount field, make it throw an error instead: Restricted Project.
Aug 8 2017, 15:05
CCulianu added a comment to D441: Fix RPC signrawtransaction silently accepting missing amount field, make it throw an error instead.

I think you screwed up something while updating the diff. Also please run autopep8 in another diff.

Aug 8 2017, 14:55
CCulianu added a comment to D393: change src/qt/res/src/bitcoin.svg to upward tilting version.

Oops.. I didn't mean to accept the revision. Sorry for that!

Aug 8 2017, 11:51
CCulianu accepted D393: change src/qt/res/src/bitcoin.svg to upward tilting version.
Aug 8 2017, 11:50
CCulianu added a comment to D441: Fix RPC signrawtransaction silently accepting missing amount field, make it throw an error instead.

@dgenr8 : From your github comment:

Aug 8 2017, 10:58
CCulianu updated the diff for D441: Fix RPC signrawtransaction silently accepting missing amount field, make it throw an error instead.

Updated fix to include reviewer suggestions

Aug 8 2017, 10:49

Aug 7 2017

CCulianu requested review of D441: Fix RPC signrawtransaction silently accepting missing amount field, make it throw an error instead.

Bump. I need more guidance/discussion here from @deadalnix and/or others. Thanks in advance..

Aug 7 2017, 21:13
CCulianu added a comment to D439: Remove code which warns about invalid longer chain and enters safe mode.

Ok, but warning gets really spammy with each new block -- maybe if you do keep the warning, limit it to a maximum number of times it can be issued -- or issue it only once per each unique 'invalid long chain found'.

Aug 7 2017, 21:12
CCulianu added a comment to D441: Fix RPC signrawtransaction silently accepting missing amount field, make it throw an error instead.

I need more review and comment since I'm new to this API, honestly. Please advise (see inline comments). Thanks in advance.

Aug 7 2017, 21:05
CCulianu updated the test plan for D441: Fix RPC signrawtransaction silently accepting missing amount field, make it throw an error instead.
Aug 7 2017, 17:34
Herald added a reviewer for D441: Fix RPC signrawtransaction silently accepting missing amount field, make it throw an error instead: Restricted Project.
Aug 7 2017, 16:59
CCulianu accepted D439: Remove code which warns about invalid longer chain and enters safe mode.

After careful reading of the code I concur 100% with you. There's no reason to issue a warning and make RPC go into "safe" mode and fail just because a large *invalid* fork is detected.

Aug 7 2017, 13:41
CCulianu accepted D430: Update several rpc tests to work post fork..

Ok, as per @freetrader 's comment in another diff -- you gotta apply these all together.

Aug 7 2017, 08:10
CCulianu accepted D437: Always use SIGHASH_FORKID in the wallet.

Looks good

Aug 7 2017, 06:06
CCulianu accepted D435: Make sure wallet.py works with the fork enabled.

Look good

Aug 7 2017, 06:05
CCulianu accepted D434: Make sure p2p-fullblocktest.py works with the fork enabled.

looks good

Aug 7 2017, 06:05
CCulianu accepted D432: Ensure all RPC tests consistently run with fork activation in the past..

Look good

Aug 7 2017, 06:04
CCulianu accepted D433: autopep8 several test files from the rpc test suite..

Look good

Aug 7 2017, 06:03
CCulianu added a comment to D430: Update several rpc tests to work post fork..

This doesn't apply to my repository.

Aug 7 2017, 05:56
CCulianu accepted D438: Get rid of using namespace std in src/rpc.

Looks good to me. Just as an aside: I'm all for getting rid of the namespace import -- it's considered bad form to import it in larger programs anyway.

Aug 7 2017, 05:35

Aug 6 2017

CCulianu committed rABC75b99eb1cb9d: Cleanup of dead mapBlockSource entries that aren't needed in FinalizeNode (authored by CCulianu).
Cleanup of dead mapBlockSource entries that aren't needed in FinalizeNode
Aug 6 2017, 18:21
CCulianu closed D372: Cleanup of dead mapBlockSource entries that aren't needed in FinalizeNode by committing rABC75b99eb1cb9d: Cleanup of dead mapBlockSource entries that aren't needed in FinalizeNode.
Aug 6 2017, 18:20
CCulianu accepted D429: Add checkpoint for a recent block.

I'm approving this because it does no harm regardless and it compiles and runs fine.

Aug 6 2017, 06:16
CCulianu updated the diff for D372: Cleanup of dead mapBlockSource entries that aren't needed in FinalizeNode.

Added braces as per @deadalnix coding style, added some additional comments

Aug 6 2017, 05:54

Aug 5 2017

CCulianu added inline comments to D372: Cleanup of dead mapBlockSource entries that aren't needed in FinalizeNode.
Aug 5 2017, 21:25
CCulianu planned changes to D372: Cleanup of dead mapBlockSource entries that aren't needed in FinalizeNode.

Unfortunately no remove_if on std::map...

Aug 5 2017, 21:17
CCulianu accepted D422: Various nits in miner.cpp , mostly braces.

Looks good, make check fine, accepted.

Aug 5 2017, 20:56
CCulianu requested review of D372: Cleanup of dead mapBlockSource entries that aren't needed in FinalizeNode.

I don't see an obvious/easy way to test this. This is all about an internal data structure that sometimes leaks under very specific conditions.

Aug 5 2017, 09:43
CCulianu accepted D409: Fix a bunch of rpc tests by putting uahf start time in the future.

Runs ok. Note some tests still fail but fewer fail with this series of diffs: D409, D411, D413, D414, so I will accept them since they are a step in the right direction...

Aug 5 2017, 06:58
CCulianu accepted D411: Also add the uahfstarttime to the rpc test framework.

Runs ok. Note some tests still fail but fewer fail with this series of diffs: D409, D411, D413, D414, so I will accept them since they are a step in the right direction...

Aug 5 2017, 06:57
CCulianu accepted D413: Fix various RPC tests from the extended test suite.

Accepting with caveat that sickpig's comment about putting the var in 1 common place would have been a good idea, but isn't the end of the world either way.

Aug 5 2017, 06:57
CCulianu accepted D414: autopep8 various files.

Runs ok. Note some tests still fail but fewer fail with this series of diffs: D409, D411, D413, D414, so I will accept them since they are a step in the right direction...

Aug 5 2017, 06:56
CCulianu accepted D417: Remove some of the UAHF activation logic..

Looks good. Tested and works.

Aug 5 2017, 06:34
CCulianu accepted D418: Update the block that's assumed to be valid to be post fork for both main and testnet.

Looks good, hashes check out.

Aug 5 2017, 06:03

Aug 4 2017

CCulianu added inline comments to D414: autopep8 various files.
Aug 4 2017, 21:32
CCulianu updated subscribers of D411: Also add the uahfstarttime to the rpc test framework.

in D409 @sickpig suggested you put this in 1 place then import the symbol.. any thoughts on that?

Aug 4 2017, 21:23
CCulianu added a comment to D409: Fix a bunch of rpc tests by putting uahf start time in the future.

I agree with sickpig's suggestion. @deadalnix.. thoughts?

Aug 4 2017, 21:14
CCulianu added a comment to D414: autopep8 various files.

Honestly I don't see the huge advantage in this coding standard of 80 character lines. It really just makes the code uglier.

Aug 4 2017, 20:49
CCulianu accepted D415: bump version to 0.14.7.

Looks good to me. Accepting.

Aug 4 2017, 20:41
CCulianu abandoned D412: Added future-proofing for supporting 'Cash magic' in serialized data streams.

OK, tabled for now.

Aug 4 2017, 17:19
CCulianu planned changes to D372: Cleanup of dead mapBlockSource entries that aren't needed in FinalizeNode.

OK, will come up with a test..

Aug 4 2017, 17:18
CCulianu added a comment to D412: Added future-proofing for supporting 'Cash magic' in serialized data streams.

Ok, fair enough -- the convert script it will be, then. Makes sense actually to just go that route -- when authoring this I wasn't aware of convert script idea.

Aug 4 2017, 17:15
CCulianu requested review of D372: Cleanup of dead mapBlockSource entries that aren't needed in FinalizeNode.

I can't figure out where they leak -- but I do know it's related to the crash we had before (for which you had to add a guard to check a stale mapBlockSource entry).

Aug 4 2017, 12:49
CCulianu added a comment to D412: Added future-proofing for supporting 'Cash magic' in serialized data streams.

We can bypass all that by having a script read the old folder and move it all into a new one with the new magic and we solve 2 problems at once.

Aug 4 2017, 11:42
CCulianu updated the diff for D412: Added future-proofing for supporting 'Cash magic' in serialized data streams.

Trying to fix code format issues

Aug 4 2017, 11:35
CCulianu added a comment to D412: Added future-proofing for supporting 'Cash magic' in serialized data streams.

We can bypass all that by having a script read the old folder and move it all into a new one with the new magic and we solve 2 problems at once.

On the code itself, it says you have style errors, so requesting changes until this is sorted out.

Aug 4 2017, 11:28
CCulianu updated the diff for D412: Added future-proofing for supporting 'Cash magic' in serialized data streams.

Eh, reformat some funny formattig create by the linter

Aug 4 2017, 10:42
Herald added a reviewer for D412: Added future-proofing for supporting 'Cash magic' in serialized data streams: Restricted Project.
Aug 4 2017, 10:36

Aug 3 2017

CCulianu accepted D400: Accept cash magic in addition to regular magic..
Aug 3 2017, 20:25
CCulianu accepted D410: autopep8 test_framework.py.

Looks good to me.

Aug 3 2017, 20:22
CCulianu added a comment to D400: Accept cash magic in addition to regular magic..

Also -- might we not want to modify deserialization functions that use the MessageStart() to deserialize data eg in addrdb.cpp (CBanDB::Read is an example) to *also* accept CashMessageStart() in addition to MessageStart() as a header when reading -- in case we want to one day totally get rid of the old magic?

Aug 3 2017, 20:12
CCulianu added a comment to D396: A pack of nits in net_processing.cpp.

Eventually, we'll get clang-tidy to do it automatically. Also I ran into a few case that are very confusing, like:

if (...) dosomething;
{
  LOCK(...);
  // ...
}

There are a few of these in the codebase, taking advantage of RAII to unlock the mutex. Very confusing.

Aug 3 2017, 19:25
CCulianu added a comment to D409: Fix a bunch of rpc tests by putting uahf start time in the future.

Note: I am having trouble running rpc-test.py (see attached).

Aug 3 2017, 19:20
CCulianu accepted D408: autopep8 several RPC tests.

Looks fine. Visually inspected. Just format nit changes so.. this looks fine.

Aug 3 2017, 19:17
CCulianu accepted D405: Have autopep8 improve some python files..

Looks harmless enough. :)

Aug 3 2017, 19:15
CCulianu added a comment to D400: Accept cash magic in addition to regular magic..

Might we want to add that fUsesCashMagic business to CNodeStats so that RPC JSON can see which peers are using cash magic and which aren't (as part of getpeerinfo RPC call)?

Aug 3 2017, 18:52
CCulianu accepted D396: A pack of nits in net_processing.cpp.

Visually reviewed (my eyes are getting sore now!!) -- looks good. No typos, error, etc that I can see and it compiled, tested, and tests pass.

Aug 3 2017, 17:57
CCulianu accepted D398: Standardize inline and static declaration order..

Jesus wept. Core... core.. core...

Really.. REALLY!? REALLY?!?!!1one

Aug 3 2017, 17:37
CCulianu accepted D407: Remove RPC calls to get/set UAHF time..

Nitpick: Would it kill you so much to do the C++ cult thing and do '++vcidx'. *ducks*

Aug 3 2017, 17:27

Jul 27 2017

CCulianu added a comment to T77: Consider removing prevector and switching back to good 'ol vector (with possible .reserve calls).

Note, I went ahead and recompiled bitcoin-abc (current master as of the time of this writing) both with and without prevector.

Jul 27 2017, 15:26 · Bootcamp, Restricted Project
CCulianu created T77: Consider removing prevector and switching back to good 'ol vector (with possible .reserve calls).
Jul 27 2017, 11:55 · Bootcamp, Restricted Project
CCulianu added a comment to D384: Factor out getId() from Misbehaving(..) calls.

Really good you did this. I hate the way that call looked before. Good job.

Jul 27 2017, 11:46
CCulianu added a comment to D381: Removed using namespace std and replaced with std:: throughout file.

I am all in favor of doing this. I never import the std namespace into my projects. I am pretty sure most C++ programmers frown on that and it's another amanteur hour thing to do so in my mind, so a huge thumbs up on this from me.

Jul 27 2017, 05:54

Jul 26 2017

CCulianu accepted D362: Remove version from UTXO and undo datastructures..

Good job on writing the test suite. I know it seems redundant since the CHashVerifier is trivial almost -- but I guess we should all enforce decent habits such as these.

Jul 26 2017, 16:10

Jul 24 2017

CCulianu planned changes to D372: Cleanup of dead mapBlockSource entries that aren't needed in FinalizeNode.

Good question. I'll investigate that and if it's the case that it can be accelerated somehow (maybe using test suite using a specifically constructed test?), I will either add a test case or figure out how it's reproduced.

Jul 24 2017, 20:27
Herald added a reviewer for D372: Cleanup of dead mapBlockSource entries that aren't needed in FinalizeNode: Restricted Project.
Jul 24 2017, 16:40

Jul 23 2017

CCulianu added a comment to T73: Consider switching over to pre-increment rather than post-increment operator++ operator-- .

This from the man who authored D370?

Jul 23 2017, 15:01 · Bootcamp
CCulianu added a comment to T73: Consider switching over to pre-increment rather than post-increment operator++ operator-- .

Awesome, glad you're on-board as well. Like I said it's not a huge deal, just in general is good C++ practice. One of those cultural things, I guess, since these days the compiler will issue identical code for ints anyway.

Jul 23 2017, 07:17 · Bootcamp
CCulianu requested changes to D362: Remove version from UTXO and undo datastructures..

Could you explain how validation.cpp:1460 ff. are not using the new template class?

Jul 23 2017, 06:00

Jul 22 2017

CCulianu updated the task description for T73: Consider switching over to pre-increment rather than post-increment operator++ operator-- .
Jul 22 2017, 21:34 · Bootcamp
CCulianu created T73: Consider switching over to pre-increment rather than post-increment operator++ operator-- .
Jul 22 2017, 21:33 · Bootcamp
CCulianu added a comment to D362: Remove version from UTXO and undo datastructures..

Rest of code changes look good, but introducing a new class without a unit test?

Jul 22 2017, 13:31

Jul 21 2017

CCulianu added inline comments to D364: Update the undo operation so they return a success/error code rather than taking out parameter.
Jul 21 2017, 19:53
CCulianu added inline comments to D362: Remove version from UTXO and undo datastructures..
Jul 21 2017, 16:07
CCulianu added inline comments to D362: Remove version from UTXO and undo datastructures..
Jul 21 2017, 16:04

Jul 20 2017

CCulianu accepted D355: Ensure that CDataStream never reads from empty buffers..

Ok, tested with your new "with arrays" addition.. everything checks out. On my Travis-work-alike system your test case failed, but with the patch to streams.h, your test case passed. Looks great.

Jul 20 2017, 18:23

Jul 15 2017

CCulianu abandoned D331: Attempt to fix segfault bug.

Useless revision. Was here for my testing. Sorry if this polluted phabricator. Still getting used to phabricator workflow.

Jul 15 2017, 19:43

Jul 14 2017

CCulianu added a comment to D331: Attempt to fix segfault bug.

I completely agree that a lot of boilerplate is a sign of a bad API. Totally agreed. Like I said, this is just here for reference in case someone gets desperate about the segfault reported.

Jul 14 2017, 23:38