Skip to content

Commit b860946

Browse files
authored
Merge pull request #419 from bitshares/reduce-genesis-max-block-size
Reduce the max-block-size that is used in new networks by default
2 parents ef374cd + 19a421f commit b860946

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/chain/include/graphene/chain/config.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
#define GRAPHENE_DEFAULT_BLOCK_INTERVAL 5 /* seconds */
4747
#define GRAPHENE_DEFAULT_MAX_TRANSACTION_SIZE 2048
48-
#define GRAPHENE_DEFAULT_MAX_BLOCK_SIZE (GRAPHENE_DEFAULT_MAX_TRANSACTION_SIZE*GRAPHENE_DEFAULT_BLOCK_INTERVAL*200000)
48+
#define GRAPHENE_DEFAULT_MAX_BLOCK_SIZE (2*1000*1000) /* < 2 MiB (less than MAX_MESSAGE_SIZE in graphene/net/config.hpp) */
4949
#define GRAPHENE_DEFAULT_MAX_TIME_UNTIL_EXPIRATION (60*60*24) // seconds, aka: 1 day
5050
#define GRAPHENE_DEFAULT_MAINTENANCE_INTERVAL (60*60*24) // seconds, aka: 1 day
5151
#define GRAPHENE_DEFAULT_MAINTENANCE_SKIP_SLOTS 3 // number of slots to skip for maintenance interval

0 commit comments

Comments
 (0)