Page MenuHomePhabricator

Factor out CWallet::nTimeSmart computation into a method.
ClosedPublic

Authored by deadalnix on Jan 13 2018, 00:24.

Details

Summary

No change in behavior, this change just pulls some code out of
CWallet::AddToWallet that was making it very long into a separate method.

Backport of core's PR9369

Test Plan
make check

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

schancel added inline comments.
src/wallet/wallet.cpp
3902 ↗(On Diff #2476)

Any idea why this was done?

3925 ↗(On Diff #2476)

:grumble:

This revision is now accepted and ready to land.Jan 14 2018, 00:57
src/wallet/wallet.cpp
1018 ↗(On Diff #2476)

See original code here.

3902 ↗(On Diff #2476)

Not sure, but the code was moved.

src/wallet/wallet.cpp
3902 ↗(On Diff #2476)

My bet is on ensuring you do not mutate things by mistake.

restore a legit use of nullptr

This revision was automatically updated to reflect the committed changes.