1
0
forked from cheng/wallet
Commit Graph

17 Commits

Author SHA1 Message Date
Cheng
bb547abae4
oops, no message, need to review what I have done 2024-02-14 21:16:32 +10:00
Cheng
d59729f396
Never really figured out why my code was breaking
fixed it by looking for funny things that deviated from
the sameples,  and doing various recommended safe things,
and found a few sql errors, and one by one the crashes
went away.

The new wxWidgets just seems less tolerant of little careless
stuff that is not right.
2023-10-18 20:23:56 +10:00
Cheng
dbe030ba21
Went all in on concepts because of nicer error messages
But did not apply the concept to the parameter pack,
event though I applied no end of cleverness to generate
a variant concept, because
visual studio gives meaningless error messages when applying
a variant concept to a parameter pack.

This will probably improve in later or different compilers,
but right now, this feature does not work
2023-10-01 06:11:15 +10:00
Cheng
bc3f2c9daf
Removed the old "is_serializable" in favor of C++20 concepts syntax.
Changed the name to "has_machine_independent_representation" for a more
intellible error explanation
2023-09-30 15:13:26 +10:00
Cheng
883d8c5b51
Found the sanity test bug.
My hashing code incorrectly ignored the trailing null in std::strings.
(but not in c strings)
2023-09-29 18:44:49 +10:00
Cheng
bba593180e
displays names in alphabetic order
sanity test of pubkey mysteriously fails in display_wallet, yet identical test with same values succeeds in unit_test
need to create a view once sanity test passes.
then need to refresh display on edit/add name
need to make a second try at integrating release v3.2.2.1
2023-09-29 08:14:29 +10:00
Cheng
8e7225440a
my exception code was too clever by half 2023-09-25 11:35:18 +10:00
Cheng
fefb99bb33
Discovered that modifying the wxWidgets manifest has no effect
Restored the wallet manifest.
Discovered that local wxString variables are apt to get wiped during
a throw.  Dangerous to pass a wXstring.utf8() to an exception
2023-09-25 10:23:11 +10:00
Cheng
89ebcee054
fixed those irritating uninitialized memory warnings by annotating parameters 2023-09-23 15:58:56 +10:00
Cheng
d7c06c75c0
cleaning up error reporting 2023-09-22 12:10:52 +10:00
Cheng
3dbd15d27e
Added line numbers and function names to unit test failures
Turned off the deprecated compare warning with explanation
Made a small start on getting names in correct order in the display_wallet
Unit test and create new wallet is still broken if wallet file does
not already exist
2023-09-16 18:49:43 +10:00
Cheng
23e95c16ba
moved a large array from stack to dynamic allocation, and fixed unit
test to correctly handle the new database schema
2023-09-15 19:46:38 +10:00
Cheng
408942a336
My update of wxWidgets broke. wxWidgets bug, or bug in the way I use it.
My update of the schema to explicitly name the ROWID column broke everything because I was using position rather than names for fields
2023-09-14 10:45:12 +10:00
Cheng
2d8aa233be
changed to immediate, and update wxWidgets version 2023-05-14 10:18:25 +08:00
Cheng
003d671c25
crash worked around
But the way I fixed it proves it is
a visual studio bug, not my bug
2023-02-17 12:43:22 +08:00
Cheng
5a9296e529
Now it compiles, but still fails unit test
So, though it compiles, the hashing code is compiling
to the wrong thing.

I conclude that my investment in template coding has been
excessive.  It is time to switch to rust.  Template
coding contains too much logically incoherent and
internally inconsistent backward compatibility
making it fragile to subtle changes in the compiler.
2023-02-16 15:24:43 +08:00
Cheng
2371674072
moving files to clean up root directory 2022-06-30 16:55:37 +10:00