Matt Corallo
1016dacfac
Fix signed/unsigned comparison warning introduced in c8e29d7ff0
.
7 years ago
Mark Friedenbach
c8e29d7ff0
Replace MAX_OPCODE for OP_NOP10.
...
That OP_NOP10 is the last executable opcode is a bit of a obscure trivia, and the MAX_OPCODE constant already exists. This merely standardizes use of MAX_OPCODE over OP_NOP10 where it makes sense and is more clear.
7 years ago
Andrew Chow
ac4e438229
Sanity check transaction scripts in DecodeHexTx
...
Make sure that the scripts of decoded transactions are valid scripts.
8 years ago
practicalswift
3fb81a8480
Use list initialization (C++11) for maps/vectors instead of boost::assign::map_list_of/list_of
8 years ago
Matt Corallo
7ea0ad539f
Fail in DecodeHexTx if there is extra data at the end
8 years ago
Karl-Johan Alm
b7b48c8bbd
Refactor: Remove using namespace <xxx> from src/*.cpp.
8 years ago
isle2983
27765b6403
Increment MIT Licence copyright header year on files modified in 2016
...
Edited via:
$ contrib/devtools/copyright_header.py update .
8 years ago
Pieter Wuille
42fd8dee30
Make DecodeHexTx return a CMutableTransaction
8 years ago
Pieter Wuille
7030d9eb47
BIP144: Serialization, hashes, relay (sender side)
...
Contains refactorings by Eric Lombrozo.
Contains fixup by Nicolas Dorier.
Contains cleanup of CInv::GetCommand by Alex Morcos
9 years ago
MarcoFalke
fa24439ff3
Bump copyright headers to 2015
9 years ago
Jonas Schnelli
9623e93473
[Univalue] add univalue over subtree
...
similar to secp256k1 include and compile univalue over a subtree
9 years ago
Philip Kaufmann
a9ac95c1bc
use const references where appropriate
10 years ago
Cory Fields
856e862f4a
namespace: drop most boost namespaces and a few header cleanups
...
A few boost::asio were left around because they're very wordy otherwise.
10 years ago
Cory Fields
a3241998e1
namespace: remove boost namespace pollution
10 years ago
sandakersmann
f914f1a746
Added "Core" to copyright headers
...
Github-Pull: #5494
Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
10 years ago
Luke Dashjr
7f71813919
Bugfix: prioritisetransaction: Do some basic sanity checking on txid
...
Besides giving a nicer error, this also prevents logging arbitrary data (which could have been used to exploit log readers) into debug.log
10 years ago
Philip Kaufmann
27df4123c4
make all catch() arguments const
...
- I saw this on http://en.cppreference.com/w/cpp/language/try_catch and
thought it would be a good idea
- also unify used format to better be able to search for exception
uses in our codebase
10 years ago
Michael Ford
78253fcbad
Remove references to X11 licence
10 years ago
Luke Dashjr
d227011184
MOVEONLY: core/ -> primitives/
10 years ago
Luke Dashjr
3dcbb9b6b4
Abstract DecodeHexBlk and BIP22ValidationResult functions out of submitblock
10 years ago
jtimon
4a3587d8db
MOVEONLY: Separate CTransaction and dependencies from core
10 years ago
Cory Fields
fa7361907a
boost: split stream classes out of serialize.h
...
serialization now has no dependencies.
10 years ago
Cory Fields
85c579e3a6
script: add a slew of includes all around and drop includes from script.h
...
Lots of files ended up with indirect includes from script.h.
10 years ago
ENikS
ec91092df8
Fixing compiler warning C4101
...
Github-Pull: #4856
10 years ago
Philip Kaufmann
611116d4e3
header include cleanup
...
- ensures alphabetical ordering for includes etc. in source file headers
10 years ago
jtimon
cbd22a50c4
Move CScript class and dependencies to script/script
10 years ago
jtimon
86dbeea2cd
Rename script.h/.cpp to scriptutils.h/.cpp (plus remove duplicated includes)
10 years ago
Philip Kaufmann
093303a887
add missing header end comments
...
- ensures a consistent usage in header files
- also add a blank line after the copyright header where missing
- also remove orphan new-lines at the end of some files
10 years ago
Philip Kaufmann
2b600992e8
add license header to core_io.h, core_read/_write.cpp
10 years ago
Philip Kaufmann
1b73d36b2c
fix compilation error in core_io.h
...
- error: 'vector' in namespace 'std' does not name a type
- add <vector> include in core_io.h
- remove <vector> includes from core_read.cpp and core_write.cpp
10 years ago
Jeff Garzik
cbe39a3852
Add "bitcoin-tx" command line utility and supporting modules.
...
This is a simple utility that provides command line manipulation of
a hex-encoded TX. The utility takes a hex string on the command line
as input, performs zero or more mutations, and outputs a hex string
to standard output.
This utility is also an intentional exercise of the "bitcoin library"
concept. It is designed to require minimal libraries, and works
entirely without need for any RPC or P2P communication.
See "bitcoin-tx --help" for command and options summary.
10 years ago
Cory Fields
2a5840096f
core_read's ParseScript(): minor cleanups
...
- use .empty() rather than .size() == 0
- use a const_iterator rather than BOOST_FOREACH
- validate iterators before creating a string from them
10 years ago
Jeff Garzik
b2aeaa7939
Move ParseScript() helper, becoming accessible outside src/test/
10 years ago
Jeff Garzik
ae775b5b31
Consolidate CTransaction hex encode/decode into core_io.h, core_{read,write}.cpp
10 years ago