obscuren
70f7a0be11
Use the state instead of the state object directly.
...
If a state gets reset and you still hold a pointer to the previous,
incorrect, state object you'll operate on the wrong object. Using the
state to set/get objects and attributes you won't have this problem
since the state will always have the correct object.
10 years ago
obscuren
311c6f8a3f
Fixed remote Arithmetic tests
10 years ago
obscuren
3d177be73e
Couple of minor issues fixed
...
* CALLVALUE pushed incorrect value to the stack
* Set execution model to closure
10 years ago
obscuren
f55e39cf1a
Tests for native function calling
10 years ago
obscuren
c5bd32b0ad
Refactored VM to two separate VMs; std & debug
...
Standard VM should be about 10x faster than the debug VM. Some error
checking has been removed, all of the log statements and therefor quite
some unnecessary if-statements.
10 years ago
obscuren
2e894b668a
Max callstack
10 years ago
obscuren
a38dafcc57
Moved the To256
10 years ago
obscuren
9d86a49a73
Renamed Sha3Bin to Sha3
10 years ago
obscuren
f3196c915a
Precompiled crypto contracts
10 years ago
obscuren
82be305496
Fixed inconsistencies
10 years ago
obscuren
54558dd8ae
Removed log
11 years ago
obscuren
80261c803a
Fixed deref ptr
11 years ago
obscuren
f3a93b046e
Upped protocol version for VM change
11 years ago
obscuren
d02024929a
require 5 for post
11 years ago
obscuren
399256b384
VM execution fixes
...
Refactoring caused executing issues
11 years ago
obscuren
2f614900e8
Updated GHOST
11 years ago
obscuren
c0187930dc
Removed some commented code
11 years ago
obscuren
2949990016
Added CALLSTATELESS
11 years ago
obscuren
a63b74e345
New OPCODES
...
* EXT- CODECOPY, CODESIZE
11 years ago
obscuren
3f904bf3ac
Implemented POST
11 years ago
obscuren
d9d4f63cd4
Don't add ...
11 years ago
obscuren
d03ab3c976
invalidated SWAP/DUP
11 years ago
obscuren
854d6d4e5c
DUP/SWAP n & ADD/MULMOD
11 years ago
obscuren
a289a77d5d
DUP n SWAP n
11 years ago
obscuren
b0ae61c652
Removed the "Get" part
11 years ago
obscuren
7d95e8624a
Added message to closure && added change addresses
11 years ago
obscuren
a760ce05b9
Updated chain for filtering
11 years ago
obscuren
c51db4c940
Fixed stack issue
11 years ago
obscuren
3fc24013ef
Fixed issue with overflowing 256 bit integers
11 years ago
obscuren
1f9894c084
Old code removed and renamed amount to balance
11 years ago
obscuren
41bd38147c
Clean up and util methods
11 years ago
obscuren
54f9ea14e1
Removed old S(DIV/MOD)
11 years ago
obscuren
3c3292d505
Added recoverable option
11 years ago
obscuren
958b482ada
div 0 err
11 years ago
obscuren
490ca410c0
Minor improvements and fixes to the new vm structure
11 years ago
obscuren
1e8b54abfb
Refactored state, state object and vm
...
* The State and StateObject have been moved to their own package
* The VM is moved to it's own package
11 years ago
obscuren
20ee1ae65e
Refactored CALLDATALOAD to use big int
...
* Added BigMin
11 years ago
Maran
6774ddaba2
Fix regression on 32bit (windows) systems
11 years ago
obscuren
93261b98c2
Changed iterator
11 years ago
obscuren
0415e4a637
Fixed coinbase copy in state
11 years ago
obscuren
ed3424ff75
Trie fixes
11 years ago
obscuren
7a410643ac
Added/changed logging
11 years ago
obscuren
2784e256f1
Vm logging on diff
11 years ago
obscuren
6426f3635e
Forgot to return gas when CALL's value transfer fails
11 years ago
obscuren
54715586ab
Changed sha3 to official one
11 years ago
obscuren
9010857677
Special diff output for execution
11 years ago
obscuren
ff151f9fbc
vm output
11 years ago
obscuren
04561c4ddc
Updated VM & added helper methods to state
...
* VM BALANCE opcode updated to pop 1 item and use that to retrieve the
address' balance
* GetBalance and GetNonce on state that'll always return something valid
11 years ago
obscuren
9688ebef52
Return from execution immediately if there's no code
11 years ago
obscuren
e504088b79
Consensus and bug fixes
...
* Ensure that each state object has an address that is 20 bytes
* Byte logging for vm
* changed diff output
11 years ago