Commit graph

88 commits

Author SHA1 Message Date
Felföldi Zsolt
f74cccd1cb beacon/types: add beacon chain data types (#27292)
* beacon/types: add beacon chain data types

* beacon/merkle: added comments

* go.mod: cleanups

---------

Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2024-12-28 09:06:31 +08:00
Daniel Liu
59b14ed2cb internal/ethapi: make NewAccount return EIP-55 format (#26973) 2024-12-28 09:06:31 +08:00
Mark Tyneway
5059114992 common/types: add Address.Big (#26132)
Many of the other types have a function to convert the type to a big.Int,
but Address was missing this function.

It is useful to be able to turn an Address into a big.Int when doing
EVM-like computations natively in Go. Sometimes a Solidity address
type is casted to a uint256 and having a Big method on the Address
type makes this easy.
2024-12-28 09:06:31 +08:00
Alexander Yastrebov
4db72a0548 common: fixes format verb (#23495) 2024-12-28 09:06:30 +08:00
Daniel Liu
c2db0e42d7 common: improve printing of Hash and Address (#21834) 2024-12-28 09:06:30 +08:00
Daniel Liu
7f63a690ee common: unify hex prefix check code (#19937) 2024-12-28 09:06:30 +08:00
Daniel Liu
cd1ff5d322 common: remove function Big() for type Address (#19210) 2024-12-28 09:06:30 +08:00
Daniel Liu
89c51c5e69 common: improve documentation comments (#16701) 2024-12-28 09:06:30 +08:00
Daniel Liu
92fc843683 crypto: switch over to upstream sha3 package (#18390) 2024-12-09 17:48:59 +08:00
Daniel Liu
aedfea681b all: make logs a bit easier on the eye to digest (#22665) 2024-11-15 10:02:41 +08:00
Daniel Liu
d3eaeb9381 eth/gasprice: use slices package for sorting (#27490 #27909 #29314) 2024-11-13 09:30:55 +08:00
Daniel Liu
5b0b5b52c7 common: fix staticcheck warning S1001: replace loop with copy 2024-10-30 21:05:15 +08:00
JukLee0ira
0aab4ced98 common: add binary variables for system contract 2024-06-06 19:33:59 +08:00
Daniel Liu
4a59bdf15a add function IsZero for type Address 2023-10-24 12:00:08 +08:00
Daniel Liu
8339e133ee add function IsZero for type Hash 2023-10-24 12:00:08 +08:00
Liam Lai
5623ce8de0 merge from master 2023-07-30 16:50:45 +10:00
Daniel Liu
6a768b04f9
add enable-0x-prefix flag (#194) 2022-12-09 19:15:13 +08:00
Liam Lai
d0cde5c51e fix new masternode bug 2022-04-14 02:07:26 -06:00
olumuyiwadad
75b2f3ca9c
Merge pull request #2 from XinFinOrg/apothem
Handle '0x' or 'xdc' prefix
2021-09-27 12:30:57 +05:30
Anil Chinchawale
e1daa99b52
Handle '0x' or 'xdc' prefix 2021-09-23 17:54:08 +05:30
olumuyiwadad
cf18ceba33 Merge branch 'forking-incident-fix' of https://github.com/hash-laboratories-au/XDPoSChain into hash-laboratories-au-forking-incident-fix 2021-09-23 17:01:19 +05:30
olumuyiwadad
b5abbfed79 new EVM Upgrade
- Solidity Upgraded up to v0.8.0
-  Fixed and Added eth_chainId
- Fix error in TransactionRecipet
- Reward halving issue fixed
2021-09-21 16:53:46 +05:30
olumuyiwadad
8daf35ff1c fix error in address prefix hasXDCPrefix 2021-09-17 18:53:18 +05:30
olumuyiwadad
571c41f891 FIx Bad block error. 2021-09-17 17:59:06 +05:30
Jianrong
944de1130a add StringToAddress method 2021-08-29 17:18:37 +10:00
Jianrong
0fdab2027c add linting as the first CI task 2021-08-07 14:27:08 +10:00
dev-vadim
dbe8c9d984 upgrade XDC.Network with v1.8.27. 2020-12-23 16:32:06 +05:30
diglspacedavid
474cc37036 upgrade codebase with ethereum:v1.8.13 2020-11-23 13:40:30 +05:30
ronakgothi
1d62749437 updated foundation address 2019-05-29 20:33:23 +05:30
AnilChinchawale
9fb068a25a Change prefix to xdc
Add prefix to Str method of Address.
Make jsre works.
2019-03-16 16:12:33 +05:30
AnilChinchawale
a638d2adc0 Minor error fixed. 2019-03-16 16:02:10 +05:30
AnilChinchawale
1ce4eba0d6 Fixed issue | File updated 2019-01-06 08:32:23 +05:30
Dave McGregor
33d233d3e1
vendor, crypto, swarm: switch over to upstream sha3 package 2019-01-04 09:26:07 +02:00
MestryOmkar
590bcb448e resolve conflicts 2018-12-04 10:09:52 +05:30
MestryOmkar
dfbac0dcf2 updated version.go 2018-11-24 16:52:55 +05:30
parmarrushabh
1596ba2489 Fixed genesis for add team MSW contract. 2018-11-14 18:07:45 +05:30
AnilChinchawale
592259eb73 refactor RemoveItemFromArray 2018-11-12 12:06:38 +05:30
parmarrushabh
7d162336fa Add MultisigWallet to puppeth for build new genesis. 2018-11-12 11:37:26 +05:30
AnilChinchawale
21656d1855 fix error panic in func RemoveItemFromArray 2018-11-09 10:59:55 +05:30
MestryOmkar
7892d7c162 Fixed unit test for new randomize smc. 2018-11-07 11:49:10 +05:30
parmarrushabh
eb9742ae27 verify penalty info in header check point 2018-11-07 11:15:32 +05:30
parmmarrushabh
9765dea721 add option genesis generator for POSV 2018-10-27 17:52:28 +05:30
parmarrushabh
264a6dc9db Fixed calculate reward for holders. 2018-10-20 16:20:30 +05:30
MestryOmkar
dc10103bea Fixed add reward balance for candidate owner not coinbase address. 2018-10-19 15:52:55 +05:30
parmarrushabh
9f5cba7dc7 update new set of masternodes at end of each epoch (distance = m1Gap) 2018-09-30 12:00:33 +05:30
ligi
3e81840061 common: fix typo (#17582)
Fixes #17581
2018-09-04 14:12:16 +02:00
Vincent Serpoul
2909f6d7a2 common: add database/sql support for Hash and Address (#15541) 2018-07-24 15:15:07 +02:00
parmarrushabh
3f1c3839c9 Add feature send tx sign (validator block) from coinbase to smart con… 2018-07-22 16:39:59 +05:30
kiel barry
d0fd8d6fc2 common: all golint warnings removed (#16852)
* common: all golint warnings removed

* common: fixups
2018-06-14 12:52:50 +03:00
kiel barry
84f8c0cc1f common: improve documentation comments (#16701)
This commit adds many comments and removes unused code.
It also removes the EmptyHash function, which had some uses
but was silly.
2018-05-29 12:42:21 +02:00